Skip to content

Instantly share code, notes, and snippets.

@zubair1024
Created January 28, 2020 21:02
Show Gist options
  • Save zubair1024/5e6b77e386b20c9a3d6dcbbc03fe9e20 to your computer and use it in GitHub Desktop.
Save zubair1024/5e6b77e386b20c9a3d6dcbbc03fe9e20 to your computer and use it in GitHub Desktop.

Install Docker on Ubuntu Using Default Repositories Step 1: Update Software Repositories It’s a good idea to update the local database of software to make sure you’ve got access to the latest revisions.

Open a terminal window and type:

sudo apt-get update

Allow the operation to complete.

Step 2: Uninstall Old Versions of Docker Next, it’s recommended to uninstall any old Docker software before proceeding.

Use the command:

sudo apt-get remove docker docker-engine docker.io

Step 3: Install Docker To install Docker on Ubuntu, in the terminal window enter the command:

sudo apt install docker.io

Step 4: Start and Automate Docker The Docker service needs to be setup to run at startup. To do so, type in each command followed by enter:

sudo systemctl start docker

sudo systemctl enable docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment