Home > Operation and Maintenance > Docker > How to upgrade the tomcat version in docker

How to upgrade the tomcat version in docker

王林
Release: 2020-04-14 15:37:30
Original
4659 people have browsed it

How to upgrade the tomcat version in docker

1. View the mounting information of the current tomcat container

docker inspect tomcat
Copy after login

2. Pull the latest image

docker pull tomcat
Copy after login

3. Then stop the current tomcat container

docker stop tomcat
Copy after login

5 and run the latest version of tomcat

docker run -d \
-v /server/demo:/usr/local/tomcat/webapps \
-v /server/logs:/mnt/applog \
-e TZ="Asia/Shanghai" \
--privileged=true \
--name tomcat_new \
-p 8080:8080 \
<container_id>
Copy after login

and it will run successfully.

Recommended tutorial: docker tutorial

The above is the detailed content of How to upgrade the tomcat version in docker. 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