【docker报错】starting container process caused "exec: \"-P8080:8080\": executable file not found in $PATH".
转自:https://www.cnblogs.com/163-4630227/p/10010089.html
docker创建tomcat容器报错:
[root@iz2ze278r1bkrzjgp5tf08z ~]# docker run -di --name=tomcat tomcat:latest -P8080:8080
6ff68159042bf87347bc9570d4ab8151fe8ff3b5bc60333718f6a0f8fd95af5b
/usr/bin/docker-current:
Error response from daemon: oci runtime error: container_linux.go:247:
starting container process caused "exec: \"-P8080:8080\": executable
file not found in $PATH".
解决: 将-p前移即可.
[root@iz2ze278r1bkrzjgp5tf08z ~]# docker rm tomcat
tomcat
[root@iz2ze278r1bkrzjgp5tf08z ~]# docker run -di --name=tomcat -p 8080:8080 tomcat:latest
c57b2e85c0ccc646aeacf2b8eef40314711ac87bbb727b0a889121424aa26f70
博 主 :夏秋初
地 址 :https://www.cnblogs.com/xiaqiuchu/articles/12596028.html
如果对你有帮助,可以点一下 推荐 或者 关注 吗?会让我的分享变得更有动力~
转载时请带上原文链接,谢谢。
地 址 :https://www.cnblogs.com/xiaqiuchu/articles/12596028.html
如果对你有帮助,可以点一下 推荐 或者 关注 吗?会让我的分享变得更有动力~
转载时请带上原文链接,谢谢。

浙公网安备 33010602011771号