Find the running container id docker ps Find the physical location of the container above cd /var/lib/docker/container ls -a #The IDs of all containers will be displayed here. Find the ID that cannot be stopped from being deleted (8 digits) Stop the docker service first service docker stop Deleting a physical container rm -rf /var/lib/docker/container/{id found above} Restart the Docker service service docker start Supplement: Docker exits the container without stopping the container and re-enters the running container How to exit the docker container (note that it is inside the running container at this time): Start the container1. Exit the container and end the container operation exit2. Exit the container but the container is still executing ctrl + p + q to return to the host desktopBut the container is still executing 3. How to return to a container that has exited but is still runningMethod 1: docker attach container id Method 2: docker exec -it container ID bashShell The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
<<: Analysis and solution of the problem that MySQL instance cannot be started
>>: HTML table border control implementation code
@vue+echarts realizes the flow effect of China ma...
Preface To be honest, I've been feeling very ...
Table of contents Steps to create TCP in Linux Se...
1. Import the basic style of external CSS files U...
Error: Connection to blog0@localhost failed. [080...
I will be learning MySQL next semester. I didn...
1. Scenario display The tomcat log occasionally r...
The warehouse created using the official Docker R...
Table of contents Seconds_Behind_Master Original ...
But recently I found that using this method will c...
An interesting discovery: There is a table with a...
1. The role of index Generally speaking, an index...
What? What star coat? Well, let’s look at the pic...
Recently, when I was working on a project, I was ...
step: 1. Create a new docker-compose.yml file in ...