Site icon installvirtual

Basic Docker Commands

Basic docker commands

Basic Docker Commands

Today i will show you some docker commands that will help in using docker. These are basic docker commands that will help in daily work with docker lets get started with the commands

$ docker images

$ docker ps

$ docker ps -a

$ docker pull centos

$ docker run -i -t centos /bin/bash

$ docker exec -i -t (container id) /bin/bash

$ docker stop (container id)

$ docker rm (container id)

(Prerequisite: You have to delete all conatiners related to docker image to delete the image or you can force deleting the docker images by using -f option in the following command)

$ docker rmi centos

$ docker run -d -t centos /bin/bash

$ docker attach (container id)

$ docker --help

By using these commands you can use docker easily.

See also: How to use Docker

Support Install Virtual

Exit mobile version