Home > Operation and Maintenance > Docker > What should I do if the docker container port cannot be accessed?

What should I do if the docker container port cannot be accessed?

王林
Release: 2020-03-24 13:50:31
Original
5665 people have browsed it

What should I do if the docker container port cannot be accessed?

The solution is as follows:

When performing a new deployment, use the following command to clear the container.

First stop all containers

docker stop $(docker ps -a -q)
Copy after login

Then delete all containers

docker rm $(docker ps -aq)
Copy after login

Recommended tutorial: docker tutorial

The above is the detailed content of What should I do if the docker container port cannot be accessed?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template