DWQA QuestionsInstall Docker on Ubuntu?
asked 6 years ago

 
Introduction
Docker is a container-based software framework for automating deployment of applications. “Containers” are encapsulated, lightweight, and portable application modules.
Step 1: Installation of Docker
First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.

Sudo apt-get update

Let’s install Docker by installing the docker-io package:

sudo apt-get -y install docker.io

Link and fix paths with the following two commands:

ln -sf /usr/bin/docker.io /usr/local/bin/docker
sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io

Finally, and optionally, let’s configure Docker to start when the server boots:

update-rc.d docker.io defaults

Step 2: Download a Docker Container
Let’s begin using Docker!

docker search ubuntu
docker pull ubuntu