

This will leave container running in the background an provide you host system console. To exit from docker container type CTRL + P + Q. Below command will start a new container and provide you access to that container with /bin/bash shell. Ubuntu latest 36248ae4a9ac 2 days ago 188 MBĬentos latest 2933d50b9f77 2 days ago 196.6 MBįinally, launch a Docker container using the above-downloaded image on your system. REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE Now make sure that above images have been downloaded successfully on your system.


sudo docker pull ubuntuī4af4261cb15: Downloading 3.779 MB/70.55 MB Now download the Docker container with name Ubuntu on your local system using following commands. For example, below command will search all images with Ubuntu and list as output sudo docker search centos

How to Use Docker? Search Docker Imagesįirst of all search Docker container images from Docker hub. You can visit our Docker tutorial section to work with Docker containers. Then check the status of the Docker service.ĭocker has been installed and running on your system. sudo yum install docker-ceĪfter successful installation of Docker engine, Let’s start the docker service. This is installed many of required decencies on your system. Now install docker community edition package to install docker on your system. sudo yum config-manager -add-repo Īfter adding the yum repository to your CentOS system, update the yum cache by executing the following command. Let’s add the official Docker yum repository on your system. sudo yum install -y yum-utils device-mapper-persistent-data lvm2 uname -rĪlso install the following packages on your system. Older versions of Kernel have some missing requirements to run all features of Docker. Advertisement Step 1 – Verify Requirementsįor a standard installation, Docker required 64-bit operating system having Kernel >= 3.10 version.
