w3c 컨퍼 갔다왔더니 docker를 다시 잘 써보고 싶어졌다.
귀염둥이 Raspberry Pi Zero W를 꺼내서 ssh 접속하고 docker-ce를 설치해본다.
sudo dpkg-reconfigure locales 하는 거 깜빡했네;;
귀염둥이 Raspberry Pi Zero W를 꺼내서 ssh 접속하고 docker-ce를 설치해본다.
$ echo "deb [arch=armhf] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list여기서 한참 걸린다.
deb [arch=armhf] https://download.docker.com/linux/debian jessie stable
$ sudo apt update && sudo apt install docker-ce -y --force-yes
Get:1 https://download.docker.com jessie InRelease [20.2 kB]
Hit http://mirrordirector.raspbian.org jessie InRelease
Ign https://download.docker.com jessie InRelease
Hit https://download.docker.com jessie/stable armhf Packages
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Get:2 https://download.docker.com jessie/stable Translation-en [584 B]
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Get:3 https://download.docker.com jessie/stable Translation-en [584 B]
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Get:4 https://download.docker.com jessie/stable Translation-en [584 B]
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Get:5 https://download.docker.com jessie/stable Translation-en [584 B]
Get:6 https://download.docker.com jessie/stable Translation-en [584 B]
Ign https://download.docker.com jessie/stable Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 20.2 kB in 20s (968 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
85 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: GPG error: https://download.docker.com jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Selecting previously unselected package libltdl7:armhf.
(Reading database ... 31449 files and directories currently installed.)tdl7 rsync
Preparing to unpack .../libltdl7_2.4.2-1.11_armhf.deb ...
git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch
git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
aufs-tools cgroupfs-mount docker-ce git git-man libapparmor1 liberror-perl libltdl7 rsync
0 upgraded, 9 newly installed, 0 to remove and 85 not upgraded.
Need to get 22.4 MB of archives.
After this operation, 104 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
docker-ce
Get:1 https://download.docker.com/linux/debian/ jessie/stable docker-ce armhf 17.09.1~ce-0~debian [17.8 MB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libltdl7 armhf 2.4.2-1.11 [42.5 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main aufs-tools armhf 1:3.2+20130722-1.1 [91.0 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main cgroupfs-mount all 1.1 [4572 B]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libapparmor1 armhf 2.9.0-3 [58.1 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main liberror-perl all 0.17-1.1 [22.4 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main git-man all 1:2.1.4-2.1+deb8u5 [1268 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main git armhf 1:2.1.4-2.1+deb8u5 [2689 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main rsync armhf 3.1.1-3 [373 kB]
Fetched 22.4 MB in 26s (855 kB/s)
Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Processing triggers for man-db (2.7.0.2-5) ...##################..............................]
sudo dpkg-reconfigure locales 하는 거 깜빡했네;;
W: GPG error: https://download.docker.com jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
이렇게 끝나버렸 ㅜㅜ
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.JOozHjzEhw --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
gpg: requesting key F273FCD8 from hkp server keyserver.ubuntu.com
gpg: key 0EBFCD88: public key "Docker Release (CE deb) <docker@docker.com>" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
키 등록하고 재시도 해볼까나
E: Sub-process /usr/bin/dpkg returned an error code (1)
뜨지만 docker-ce가 이미 설치되있다고 해서.
docker 쳐봤더니
Segmentaion fault
어질;;;;
아 이건 안되겠네. oTL
이걸로 해봐야겠다. ARMv6 만만하지 않군;
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep sound | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep gnome | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep lxde | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep gtk | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep desktop | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep gstreamer | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep avahi | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep dbus | sed s/install//`
sudo apt-get -y remove `sudo dpkg --get-selections | grep -v "deinstall" | grep freetype | sed s/install//`
sudo apt-get -y autoremove
sudo apt-get clean
샤악 날리고.
sudo sed -i 's/wheezy/jessie/' /etc/apt/sources.list
sudo sed -i 's/wheezy/jessie/' /etc/apt/sources.list.d/raspi.list
sudo apt-get update && sudo apt-get -y upgrade # answer 'y' to upcoming questions
sudo apt-get -y dist-upgrade
sudo init 6
sudo apt-get -y dist-upgrade 요기서 쫌 오래걸림
여튼 재부팅 뒤 다시 접속
sudo apt-get -y autoremove
sudo apt-get -y purge $(dpkg -l | awk '/^rc/ { print $2 }')
sudo init 6
또 재접속.
Hypriot team 님들걸로 설치 시도.
curl -ks https://packagecloud.io/install/repositories/Hypriot/Schatzkiste/script.deb.sh | sudo bash
sudo apt-get install docker-hypriot=1.10.3-1
sudo sh -c 'usermod -aG docker $SUDO_USER'
sudo systemctl enable docker.service
데몬이 안뜨니까 리붓하고 확인해보자. 결과는?
$ sudo docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.10.3
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: null host bridge
Kernel Version: 4.9.35+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv6l
CPUs: 1
Total Memory: 434.1 MiB
Name: sprpi0
ID: KI4Y:B5FO:6MMS:J4PE:7EGH:TJDK:FTBC:RXJN:QTNZ:7XVS:YXYW:UJNR
Debug mode (server): true
File Descriptors: 11
Goroutines: 20
System Time: 2017-12-09T16:39:46.019045602Z
EventsListeners: 0
Init SHA1: 0db326fc09273474242804e87e11e1d9930fb95b
Init Path: /usr/lib/docker/dockerinit
Docker Root Dir: /var/lib/docker
WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support
꺄하하하하하!
$ docker version
Client:
Version: 1.10.3
API version: 1.22
Go version: go1.4.3
Git commit: 20f81dd
Built: Thu Mar 10 22:23:48 2016
OS/Arch: linux/arm
Server:
Version: 1.10.3
API version: 1.22
Go version: go1.4.3
Git commit: 20f81dd
Built: Thu Mar 10 22:23:48 2016
OS/Arch: linux/arm
씐난다!
오우!
hypriot님들 잘하시네. $SUDO_USER라는 게 없어서 그냥 pi 기본 유저 적어줌.
sudo sh -c 'usermod -aG docker pi'
블로그도 읽어보고 좀 배워야겠다.
댓글
댓글 쓰기