Install Docker on Linux
Install using your package manager
Here are some popular examples.
- Ubuntu, Debian, CentOS, Fedora:
-
Arch:
- Gentoo:
Add user to docker group
NOTE This can be dangerous, anyone added to the docker group is root equivalent because they can use the docker run --privileged command to start containers with root privileges. Archwiki
Logout
You will need to logout for the group to update for the user
After logging back in run groups
and you should see the docker
group has been added to your user
Start and enable the docker service
starting the service will activate it for your current session
enabling the service will activate for all future sessions
NOTE The service will be automatically enabled for Ubuntu and Debian
You can use the following to check that the service is enabled:
Testing your installation
Run docker info
to confirm the docker service is running
Images to get you started
Here are some examples of what you can do with docker: