Docker is an open-source software that provides a lightweight container engine. It runs primarily on Linux and Windows for creating, managing and orchestrating containers.
How To Install Docker-CE on Ubuntu Server 19.04 64-bit เรามาลองติดตั้ง Docker CE บน Ubuntu Server 19.04 64-bits กันครับ เริ่มกันเลยครับ. Playing within Docker Client on Ubuntu 19.04 You can run a docker command with referring to DockerHost using -H option. Docker -H tcp://192.168.33.250:2375 images You can try to get the images it will show nothing docker client when you do not mention -H option or DOCKERHOST undefined docker images.
Docker is available in two editions: Docker CE (Community Edition) and Docker EE (Enterprise Edition). As compared to our regular virtual machine platforms such as VMware or Oracle VirtualBox virtual machines; Docker uses containers to host applications without using a guest operating system. Thus, it has minimal overhead cost and high performance. However, Docker’s isolation of applications is not as complete as virtual machines, so it does not completely replace VMware kind of virtualization.
This Docker tutorial will explain how to install and setup Docker CE on Ubuntu 19.04/18.04/16.04 Linux…
To install Docker- Ubuntu OS requirements
For the Docker installation on Ubuntu, we need a 64-bit operating system. Here are the supported versions- Ubuntu 19.04 disco dingo, Cosmic 18.10, Bionic 18.04 (LTS) and Xenial 16.04 (LTS).
Sudo root access
Ubuntu 19.04 Docker Hub
Make sure you have sudo/root access of your Ubuntu server or desktop where you are planning to set Docker CE.
Step 1: Update Ubuntu System
To confirm all the packages on your system are up to date and upgraded to their latest version, use the below two commands:
Step 2: Enable HTTPS for repositories
To install Docker we use apt and here we are allowing it to have the capability to fetch different packages from repositories over https protocol.
Step 3: Install a few required tools/packages
Step 4: Add GPG of Docker
To make sure that whatever packages we are receiving for Docker installation are from the authentic and official source, thus add Docker’s official GPG key.
We can now verify the fingerprint of the above added Key, run the below command and match the output. It should reply with 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88.
Step 5: Add Docker’s official repository on Ubuntu
To tell the Ubuntu where are the installation packages of Docker’s are residing to download, we have to add the repository of Docker. Run the below command:
Again update the system (if needed):
Step 6: Command to install Docker CE on Ubuntu 19.04/18.04…
Now everything has been already setup up for Docker installation its time to perform it.
To install the docker, docker command line (CLI) and Docker container.io you can simply type a command:
To Check installed docker version
After installing, if you want to check the installed docker’s version then use this command:
Step 7: Manually Start Docker
Ubuntu 18.04 Docker-compose
After installing docker, in case the docker has not started automatically then use the below command to do that manually.
If your system has been booted with systemd as init then use the systemctl command to start it.
Else use the service command:
Step 9: Test Docker CE is installed correctly
Now we do a small docker test to check whether docker services are running perfectly.
Step 9: Access the Docker CLI without needing root access
To save yourself using sudo again and again for docker’s command to run, add its user to root group
Step 8: Use Docker to install ubuntu image
Here is the command to pull the docker image of Ubuntu for its quick installation.
Ubuntu 18.04 Docker Ce
Uninstall docker ubuntu (Optional)
Hereafter, in case you want to uninstall Docker from Ubuntu then we can use this single command:
Ubuntu 18.04 Docker.io
To delete all images, containers, and volumes: