Docker - Alpine Linux
Docker - Alpine Linux
wiki.alpinelinux.org/wiki/Docker
Installation
The Docker package is in the 'Community' repository. See
Alpine_Linux_package_management how to add a repository.
Connecting to the Docker daemon through its socket requires you to add yourself to the
`docker` group.
Note: On older versions of Alpine Linux with older versions of docker you'll also need to
disable some kernel security flags in order to build images:
sysctl -w kernel.grsecurity.chroot_deny_chmod=0
sysctl -w kernel.grsecurity.chroot_deny_mknod=0
This weakening of security is not necessary to do with Alpine 3.4.x and Docker 1.12 as of
August 2016.
Docker Compose
'docker-compose' is in the 'Community' repository starting with Alpine Linux 3.10.
1/3
add to /etc/docker/daemon.json
{
"userns-remap": "dockremap"
}
"experimental": false,
"live-restore": true,
"ipv6": false,
"icc": false,
"no-new-privileges": false
Alpine 3.8
It may not have been the case before, but with Alpine 3.8, you must config cgroups
properly
Warning: This seems not to work with Alpine 3.9 and Docker 18.06. Follow the
instructions for grub or extlinux below instead.
Grub
If you use Grub, add the cgroup condition into /etc/default/grub , then upgrade your
grub
2/3
Extlinux
With Extlinux, you add the cgroup condition, but inside of /etc/update-extlinux.conf
update-extlinux
http://docs.docker.com/
If you create an account at docker.com, you can browse through user images and learn
from the syntax in contributed dockerfiles.
Official Docker image files are denoted on the website by a blue ribbon.
3/3