docker –version

docker image ls

docker container ls

docker run –interactive –tty ubuntu bash

docker container ls –all

Kill running containers: docker kill $(docker ps -q)

    1. Delete all stopped containers: docker rm $(docker ps -a -q)
      1. delete all images: docker rmi $(docker images -q)
      2. Force delete all containers: docker rm -f $(docker ps -a -q)
      3. Force delete all Images: docker rmi -f $(docker images -q)

Add/remove network adapter to centos docker

Create: docker network create –subnet= docker_manu

Assign: docker run –net docker_manu –ip -it ubuntu bash

Remove: docker network rm docker_manu


No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Comments