Installing Docker on Ubuntu-18.04!


For those who want to build and run Docker containers in Ubuntu-18.04 – first of all, you need to install Docker itself.
To install the latest version of Docker and be able to update it in the future without any problems, it is recommended to install Docker from the official repository.
In this guide, I will show how to install the free Docker CE (Community Edition) in Ubuntu-18.04 from a stable official repository, how to make sure that it is installed correctly and what usually needs to be done after installation.

Requirements: To install Docker in Ubuntu-18.04, you must have a 64-bit architecture and Linux kernel version 3.10 or higher. By running arch and uname -r, you can check if the system meets these requirements.

Add the official Docker GPG key:

$ curl -fsSL | sudo apt-key add -

Set up a stable Docker repository:

$ sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"

Install docker:

$ sudo apt-get update
$ sudo apt-get install docker-ce

Run docker:

$ sudo systemctl start docker

Good Tip: Docker installed successfully! It’s time to launch the first Docker container!

Run docker container

Similar Posts:


How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Scroll to Top