Installing Docker
Docker is installed via package manager.
Arch Linux
$ sudo pacman -S docker
Debian/Ubuntu Linux
$ sudo apt-get install docker.io
Starting Docker Engine
Start the Docker daemon which provides the Docker Engine. This process serves the Docker API and manages Docker containers.
$ sudo systemctl start docker.service
If you want Docker Engine to automatically start when you system boots issue the below command.
$ sudo systemctl enable docker.service
Verify that Docker Engine is running.
$ docker info
Verify that you can run containers. The below will download the latest Arch Linux image and use it to run a "Hello World" bash script in the container.
$ docker run -it --rm archlinux bash
Top comments (0)