During the development process, especially when debugging the code, there will always be a situation where the Dockerfile or application exception causes the application to fail to start.
At this point, you want to go inside the container and see what’s going on.
At this time, I want to use docker exec -it Container_name bash
it to enter the container normally, but Error response from daemon: Container baa1e5…… is not running
an exception will occur.
solution
View the container ID that needs to be entered
# View all container processes
docker ps -a
# Copy the ID of this unbootable container
baa1e5
Save the abnormally started container as an image
# Here is a random mirror name
docker commit baa1e5 temp/test
Start a new container to view the log of the startup process
docker run -it temp/test sh
Read More:
- MAC: How to modify the docker container error [screen is terminating]
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- [Solved] Docker startup container error: permission denied””: unknown.
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- How to Solve Spring Cloud Error context has been closed already
- How to Fix HTTP Error 500: the default page enter their own routing can’t find a result
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- How to Solve Docker failed to initialize Error
- The spring project is normal locally, and the bean cannot be found error is thrown when entering the docker container
- [Solved] CCS compilation and debug error: Source lookup: unable to restore CPU specific source container – expecting valid source container id value.
- How to Solve webpack -v View Error in vsode
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- How to Solve k8s Nodal issues: /sys/fs/cgroup/memory/docker: no space left on device\““: unknown.
- [Solved] SAP MDG Create View Error: unexpected error while activating search view ZMDG_XXX
- Docker Open Error: Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit
- [Solved] CentOS build a docker error: job for docker.service failed….
- [Solved] docker Error: bridge docker0 failed: exchange full
- How to Solve Docker Error: elasticsearch exception: type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
- [Solved] Logging system failed to initialize using configuration from ‘classpathlogbacklogback-spring.xml‘