Open terminal using command Ctrl+T.
Update your existing list of packages.
Install prerequisite packages which let apt use packages over HTTPS:
Add GPG key for the official Docker repository to your system:
Add the Docker repository to APT sources:
Update the package database
Make sure you are about to install from the Docker repo instead of the default Ubuntu repo:
You’ll see output like this, although the version number for Docker may be different:
Notice that docker-ce is not installed
Finally, install Docker:
Docker should now be installed, the daemon started, and the process enabled to start on boot. Check that it’s running:
To view system-wide information about Docker, use:
To check whether you can access and download images from Docker Hub, type:
The output should look similar to the following:
The hello-world container you ran in the previous step is an example of a container that runs and exits after emitting a test message. Containers can be much more useful than that, and they can be interactive.
After using Docker for a while, you’ll have many active (running) and inactive containers on your computer. To view the active ones, use:
Thats all in terms of installing Docker and some basic commands.
286 total views, 1 views today