GENERAL

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=192.168.0.100/16 docker_manu

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

Remove: docker network rm docker_manu

Leave a Reply

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