(1)拉取tomcat,使用如下命令从服务器上拉取这个 tomcat 镜像到本地:

(2)查看拉取的镜像,使用如下命令查看拉取的镜像:

(3)运行容器中的 tomcat 通过如下命令可运行上述 tomcat 镜像:(4)在浏览器中访问 http://localhost:8080 应该能看到 tomcat 的默认页面。

更多推荐