x86_64
(or amd64
), armhf
, and arm64
architectures.docker
, docker.io
, or docker-engine
.If these are installed, uninstall them:apt-get
reports that none of these packages are installed./var/lib/docker/
, including images, containers, volumes, andnetworks, are preserved. If you do not need to save your existing data, and want tostart with a clean installation, refer to the uninstall Docker Enginesection at the bottom of this page.overlay2
, aufs
and btrfs
storage drivers.overlay2
storage driver by default. If you need to useaufs
instead, you need to configure it manually.See use the AUFS storage driverapt
package index and install packages to allow apt
to use arepository over HTTPS:nightly
or test
(or both)after the word stable
in the commands below. Learn about nightly and test channels.Note: Thelsb_release -cs
sub-command below returns the name of yourUbuntu distribution, such asxenial
. Sometimes, in a distributionlike Linux Mint, you might need to change$(lsb_release -cs)
to your parent Ubuntu distribution. For example, if you are usingLinux Mint Tessa
, you could usebionic
. Docker does not offer any guarantees on untestedand unsupported Ubuntu distributions.
apt
package index, and install the latest version of DockerEngine and containerd, or go to the next step to install a specific version:Got multiple Docker repositories?If you have multiple Docker repositories enabled, installingor updating without specifying a version in theapt-get install
orapt-get update
command always installs the highest possible version,which may not be appropriate for your stability needs.
5:18.09.1~3-0~ubuntu-xenial
.hello-world
image.docker
group is created but no usersare added to it. You need to use sudo
to run Docker commands.Continue to Linux postinstall to allow non-privilegedusers to run Docker commands and for other optional configuration steps.sudo apt-get update
, then follow theinstallation instructions, choosing the newversion you want to install..deb
file for your release and install it manually. You need to downloada new file each time you want to upgrade Docker.https://download.docker.com/linux/ubuntu/dists/
,choose your Ubuntu version, then browse to pool/stable/
, choose amd64
,armhf
, or arm64
, and download the .deb
file for the Docker Engineversion you want to install.Note: To install a nightly or test (pre-release) package,change the wordstable
in the above URL tonightly
ortest
.Learn about nightly and test channels.
hello-world
image.docker
group is created but no usersare added to it. You need to use sudo
to run Docker commands.Continue to Post-installation steps for Linux to allownon-privileged users to run Docker commands and for other optional configurationsteps.docker-install
repository.Using these scripts is not recommended for productionenvironments, and you should understand the potential risks before you usethem:root
or sudo
privileges to run. Therefore,you should carefully examine and audit the scripts before running them.get
with test
.DEB
-based distributions. OnRPM
-based distributions, you need to start it manually using the appropriatesystemctl
or service
command. As the message indicates, non-root users can’trun Docker commands by default.