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)
-
- Delete all stopped containers: docker rm $(docker ps -a -q)
-
- delete all images: docker rmi $(docker images -q)
- Force delete all containers: docker rm -f $(docker ps -a -q)
- 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
No responses yet