This is an old revision of the document!
Docker
I use Fedora as baseline, thus all the instructions consider it
Fedora provides Docker support using Podman or Docker CE. We will stick with Docker CE for now, as provided by package moby-engine
(moby is the mascot of Docker):
dnf install moby-engine
systemctl enable docker
Check if Docker is running:
curl –unix-socket /var/run/docker.sock http://localhost/version
Allow other users than root to use Docker by adding them to docker
group:
groupadd docker
usermod -aG docker <username>
You will probably want to install docker-compose
:
dnf install docker-compose
If you want to run docker inside docker (nested docker instances), you may run the nested docker instance using the default Unix socket docker.sock as a volume. For example:
docker run -v /var/run/docker.sock:/var/run/docker.sock -ti docker