Estimated reading time: 10 minutes Show
To get started with Docker Engine on Ubuntu, make sure you meet the prerequisites, then install Docker. PrerequisitesOS requirementsTo install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:
Docker Engine is supported on Uninstall old versionsOlder versions of Docker were called
It’s OK if The contents of Installation methodsYou can install Docker Engine in different ways, depending on your needs:
Install using the repositoryBefore you install Docker Engine for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository. Set up the repository
Install Docker Engine
Docker Engine is installed and running. The Upgrade Docker EngineTo upgrade
Docker Engine, first run Install from a packageIf you cannot use Docker’s repository to install Docker Engine, you can download the
Docker Engine is installed and running. The Upgrade Docker EngineTo upgrade Docker Engine, download the newer package file and repeat the installation procedure, pointing to the new file. Install using the convenience scriptDocker provides a convenience script at get.docker.com to install Docker into development environments quickly and non-interactively. The convenience script is not recommended for production environments, but can be used as an example to create a provisioning script that is tailored to your needs. Also refer to the
install using the repository steps to learn about installation steps to install using the package repository. The source code for the script is open source, and can be found in the Always examine scripts downloaded from the internet before running them locally. Before installing, make yourself familiar with potential risks and limitations of the convenience script:
This example downloads the script from get.docker.com and runs it to install the latest stable release of Docker on Linux:
Docker is installed. The
Install pre-releasesDocker also provides a convenience script at test.docker.com to install pre-releases of Docker on Linux. This script is equivalent to the script at To install the latest version of Docker on Linux from the “test” channel, run:
Upgrade Docker after using the convenience scriptIf you installed Docker using the convenience script, you should upgrade Docker using your package manager directly. There is no advantage to re-running the convenience script, and it can cause issues if it attempts to re-add repositories which have already been added to the host machine. Uninstall Docker Engine
You must delete any edited configuration files manually. Next steps
|