webadmin's picture

Docker Command Yang Sering Digunakan

Coding

Other Useful Docker Commands

List Docker Container

$ docker ps -a

Restart Docker Container

$ docker restart "container name or ID"

Rename Docker Container

$ docker rename "container name or ID"

Removing Containers from Docker

$ docker rm "container name or ID"

Uninstall Docker

$ sudo apt-get purge docker-ce$ sudo rm -rf /var/lib/docker

Execute Docker Pull Images

$ docker exec -it image name sh

Access Docker Container

$ docker exec -it "Container Name or ID" bash

Check Docker Images

$ docker images

Access Docker Container

$ docker rmi "Image Name"