In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Enter the following command as written in the book:
$sudo docker run-d-p 80-name static_web yorkz0909/static_web\ nginx-g "daemon off;"
To start the new container, the container seems to have started, but the following error will be reported:
35b5d1f047a51373ca71190b0eed504ba0540c32427f4637b967c7b4ad7fa217
Docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting
Container process caused\ "exec:\\" nginx\\ ": executable file not found in $PATH\"\ n ".
After searching for the reason, it may be because the command was wrong at startup, so / bin/sh was added to the command and renamed static_web2, otherwise the naming conflict will be reported incorrectly:
Error content:
Docker: Error response from daemon: Conflict. The name "/ static_web1" is already in use by container
35b5d1f047a51373ca71190b0eed504ba0540c32427f4637b967c7b4ad7fa217. You have to remove (or rename) that container to be able to reuse that name..
Enter the correct command:
$sudo docker run-d-p 80-name static_web2 yorkz0909/static_web / bin/sh\ nginx-g "daemon off;" d918395d551b582ae1a446ff119d4832fe9bfb4a65e91b2ea1a75e36ffec6743
There is no error after running, of course, I don't know exactly why, but I guess it may be because the command specified to run is added to the specified / bin/sh command.
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.