Search

'2021/09'에 해당되는 글 1건

  1. 2021.09.05 NanoPi M4V2 : Docker

NanoPi M4V2 : Docker

OS/NanoPi 2021. 9. 5. 13:40 Posted by 파란크리스마스

출처

Docker 설치

pi@NanoPi-M4v2:~$ wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/containerd.io_1.2.6-3_arm64.deb
pi@NanoPi-M4v2:~$ wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce-cli_19.03.2~3-0~ubuntu-bionic_arm64.deb
pi@NanoPi-M4v2:~$ wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/arm64/docker-ce_19.03.2~3-0~ubuntu-bionic_arm64.deb
pi@NanoPi-M4v2:~$ sudo dpkg -i containerd.io_1.2.6-3_arm64.deb
Selecting previously unselected package containerd.io.
(Reading database ... 155441 files and directories currently installed.)
Preparing to unpack containerd.io_1.2.6-3_arm64.deb ...
Unpacking containerd.io (1.2.6-3) ...
Setting up containerd.io (1.2.6-3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service.
pi@NanoPi-M4v2:~$ sudo dpkg -i docker-ce-cli_19.03.2~3-0~ubuntu-bionic_arm64.deb
pi@NanoPi-M4v2:~$ sudo dpkg -i docker-ce_19.03.2~3-0~ubuntu-bionic_arm64.deb
Selecting previously unselected package docker-ce.
(Reading database ... 155656 files and directories currently installed.)
Preparing to unpack docker-ce_19.03.2~3-0~ubuntu-bionic_arm64.deb ...
Unpacking docker-ce (5:19.03.2~3-0~ubuntu-bionic) ...
Setting up docker-ce (5:19.03.2~3-0~ubuntu-bionic) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket.
Processing triggers for systemd (237-3ubuntu10.52) ...

Test Docker installation

pi@NanoPi-M4v2:~$ git clone https://github.com/friendlyarm/debian-jessie-arm-docker
pi@NanoPi-M4v2:~/debian-jessie-arm-docker$ sudo ./rebuild-image.sh

Sending build context to Docker daemon  3.072kB
Step 1/6 : FROM armhf/debian
Step 2/6 : COPY ./sources.list /etc/apt/sources.list
Step 3/6 : RUN apt-get update
Step 4/6 : RUN echo "root:fa" | chpasswd
Step 5/6 : USER root
Step 6/6 : RUN echo "all done."
pi@NanoPi-M4v2:~/debian-jessie-arm-docker$ sudo ./run.sh
root@6bd5e8aec566:/# ls
bin  boot  dev  etc  home  lib  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
root@6bd5e8aec566:/usr# exit
exit
pi@NanoPi-M4v2:~/debian-jessie-arm-docker$ 

댓글을 달아 주세요