Current location - Health Preservation Learning Network - Slimming men and women - How to deploy docker with your own jdk
How to deploy docker with your own jdk
Docker comes with jdk deployment Docker installation method:

1. In dockerhub, jdk and tomacat knew that there would be a ready-made packaged image without thinking, and used it decisively (it is recommended to use the one with relatively short update time).

2. use docker-pull to download the image.

3. use docker-run, name-Tomcat (user-defined image name) -P8080: 8080-D-Tomcat (image name) to start Tomcat. At this time, Tomcat and jdk are all done.

4. use docker-ps to view the startup image. After the startup is successful, you can visit the home page after the startup of tomacat service with IP: 8080f.