1、tomcat容器创建
docker run -d --name Jdd_tomcat -p 8081:8080 tomcat
[root@localhost etc]# docker run -d --name Jdd_tomcat -p 8081:8080 tomcat
Unable to find image 'tomcat:latest' locally
latest: Pulling from library/tomcat
cc1a78bfd46b: Pull complete
d2c05365ee2a: Pull complete
231cb0e216d3: Pull complete
e8912f9d0ce2: Pull complete
9bafe362f99b: Pull complete
28b0652112a6: Pull complete
da23e1e20eae: Pull complete
9d809d99b239: Pull complete
10c61bb6d245: Pull complete
50578eb745b9: Pull complete
85082b9ab294: Pull complete
d34391598837: Pull complete
Digest: sha256:22263c7c58e5397b29d02f88e39e7f2e18943f5bce6682be66f2298afee75769
Status: Downloaded newer image for tomcat:latest
f62525dbb52b086d38ef99a29c8a757b5bbaa78cf51c174ddcbcff4803594d2d