Install Docker On Ubuntu
The following steps guide you in installation of docker on ubuntu:
Step 1: Remove old version of Docker
- Execute the following command to remove the old versioned docker software:
$ sudo apt-get remove docker docker-engine docker.io containerd runc
Step 2: Installing Docker Engine
- The following command is used for installation of docker engine:
$ sudo apt-get update
$ sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
$ sudo mkdir -p /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
$ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
$ sudo groupadd docker
$ sudo usermod -aG docker $USER
Step 3: Verify Docker Installation
- Check if docker is successfully installed in your system by trying to run a container with the following command:
$ sudo docker run hello-world
To more detailing on the installation of docker on ubuntu, refer this – Article
What is Docker?
Docker is a set of Platforms as a service (PaaS) products that use Operating system-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries, and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating system kernel and therefore use fewer resources than a virtual machine.
Table of Content
- What is Docker?
- Why Docker is popular?
- What is a Dockerfile?
- What is Docker Architecture and How Docker Works?
- What is Docker Image?
- What is Docker Container?
- What is Docker Hub?
- What is Docker Compose?
- How to Download Docker Desktop?
- Docker Commands
- Docker Engine
- Why to use Docker?
- What is Docker For AWS?
- Difference Between Docker Containers and Virtual Machines
- Install Docker On Ubuntu
- Sample Example: Containerizing Application Using Docker
- Sample Example to Push an image to Docker Hub
- Fetch and run the image from Docker Hub
- Benefits of Docker
- Alternatives of Docker
- Docker Security