Arch Linux Install Docker
2/13/2022by admin
Installation Installation Table of contents Prepare your configuration Run as standalone binary Run with docker Alternative registry Docker from command line Run with docker-compose Advanced setup Other installation types Run with helm chart on Kubernetes AUR package for Arch Linux Package for Alpine Linux. How to Install Docker on Ubuntu. Open a terminal emulator and install prerequisites. Sudo apt update && sudo apt install software-properties-common gnupg2 curl ca-certificates apt-transport-https. Check Docker’s GPG key fingerprint.
- 1Installation
- 4'WARNING: No {swap,memory} limit support'
Installation
The Docker package is in the 'Community' repository. See Alpine_Linux_package_management how to add a repository.
Arch Linux Install Docker Commands
Connecting to the Docker daemon through its socket requires you to add yourself to the `docker` group.
To start the Docker daemon at boot, see Alpine_Linux_Init_System.
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:
For more information, have a look at the corresponding Github issue.
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.
For older releases:
To install docker-compose, first install pip:
Isolate containers with a user namespace
add to /etc/docker/daemon.json
You may also consider these options : '
You'll find all possible configurations here[1].
Example: How to install docker from Arch

'WARNING: No {swap,memory} limit support'
You might encounter this message when executing docker info
.To correct this situation, we have to enable the cgroup_enable=memory swapaccount=1
Arch Linux Install Docker
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
Extlinux
With Extlinux, you add the cgroup condition, but inside of /etc/update-extlinux.conf
then update the config and reboot
update-extlinux
Arch Linux Install Docker Tutorial
How to use docker
The best documentation on using Docker and creating containers is at the main docker site. Adding anything to it here would be redundant.
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.
See also
Retrieved from 'http://wiki.alpinelinux.org/w/index.php?title=Docker&oldid=20062'
Comments are closed.