apk add docker does NOT install docker
#1
Tue, 2017-02-21 16:08
gerryf123
-
- Offline
- 1 year 1 month ago
- 2017-02-21
Hi,
I am new to Alpine Linux. i am using it for a Docker container to run Jenkins.
Within my docker container, I am seeing
bash-4.3$ cat /etc/alpine-release 3.4.4 bash-4.3$ docker -h bash: /usr/bin/docker: No such file or directory bash-4.3$
I was expecting docker to be installed in the Container by default.
I have tried to manually add it as follows
bash-4.3$ sudo apk add docker OK: 350 MiB in 71 packages bash-4.3$
This does not seem to do anything ...
bash-4.3$ docker -h bash: /usr/bin/docker: No such file or directory bash-4.3$
Further possibly related information = I have noticed that apk update is failing
bash-4.3$ sudo su - a33fac164adb:~# export http_proxy=http://web-proxy.europe.hp.com:8080 a33fac164adb:~# export https_proxy=http://web-proxy.europe.hp.com:8080 a33fac164adb:~# apk update fetch <a href="http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz fetch</a> <a href="http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz v3.4.6-76-g2d91f66" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz v3.4.6-76-g2d91f66</a> [<a href="http://dl-cdn.alpinelinux.org/alpine/v3.4/main" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/v3.4/main</a>] v3.4.6-33-g38ef2d2 [<a href="http://dl-cdn.alpinelinux.org/alpine/v3.4/community" rel="nofollow">http://dl-cdn.alpinelinux.org/alpine/v3.4/community</a>] OK: 5983 distinct packages available a33fac164adb:~# apk add docker OK: 350 MiB in 71 packages a33fac164adb:~# docker -h -ash: docker: not found a33fac164adb:~#
What am I doing wrong ?
What do I need to do to get docker available ?