How to solve docker access page error

WJ
Release: 2020-06-05 15:41:35
Original
2538 people have browsed it

How to solve docker access page error

How to solve the docker access page error?

How to solve docker access page error

Create container

(django31) pyvip@VIP:~$ docker container start test
test
(django31) pyvip@VIP:~$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                    NAMES
bf38f67f54fb        tomcat              "catalina.sh run"   15 minutes ago      Up 15 minutes       0.0.0.0:9999->8080/tcp   demo
e6401b123eb8        tomcat              "catalina.sh run"   20 minutes ago      Up 4 seconds        0.0.0.0:8080->8080/tcp   test
Copy after login

Enter/bin/bash View

(django31) pyvip@VIP:~$ docker exec -it bf38 /bin/bash
root@bf38f67f54fb:/usr/local/tomcat# ls
BUILDING.txt LICENSE  README.md RUNNING.txt  conf     lib   native-jni-lib  webapps   work
CONTRIBUTING.md  NOTICE   RELEASE-NOTES  bin      include  logs  temp     webapps.dist
Copy after login

Enter the webapps file Check if there is a file, there is none here, so I deleted it, check webapps.dist

root@bf38f67f54fb:/usr/local/tomcat# cd webapps
root@bf38f67f54fb:/usr/local/tomcat/webapps# ls
root@bf38f67f54fb:/usr/local/tomcat/webapps# rm -r webapps
rm: cannot remove 'webapps': No such file or directory
Copy after login

Make a copy,

root@bf38f67f54fb:/usr/local/tomcat# rm -r webapps
root@bf38f67f54fb:/usr/local/tomcat# ls
BUILDING.txt LICENSE  README.md RUNNING.txt  conf     lib   native-jni-lib  webapps.dist
CONTRIBUTING.md  NOTICE   RELEASE-NOTES  bin      include  logs  temp     work
root@bf38f67f54fb:/usr/local/tomcat# cp -r webapps.dist/ webapps
root@bf38f67f54fb:/usr/local/tomcat# ls
BUILDING.txt LICENSE  README.md RUNNING.txt  conf     lib   native-jni-lib  webapps   work
CONTRIBUTING.md  NOTICE   RELEASE-NOTES  bin      include  logs  temp     webapps.dist
Copy after login

ok, visit again,

How to solve docker access page error



The above is the detailed content of How to solve docker access page error. 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