In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to do the docker-compose command error in the window environment. The content is concise and easy to understand. It will definitely make your eyes shine. I hope you can gain something through the detailed introduction of this article.
Error command: docker-compose up -d
Error message:
File "site-packages\docker\transport\npipeconn.py", line 31, in connect File "site-packages\docker\transport\npipesocket.py", line 22, in wrapped File "site-packages\docker\transport\npipesocket.py", line 49, in connectpywintypes.error: (2, 'WaitNamedPipe', 'The system cannot find the file specified. ')docker-compose returned -1
docker environment analysis:
The host system is win10, and docker is installed with Docker Toolbox. In this environment, docker engine runs in Linux system of virtualbox virtual machine, and management basically depends on docker-machine. So the docker-xxx commands in window are basically docker commands on virtual machines connected to virtualbox via the network.
The default communication address is "tcp://192.168.99.100:2376"
View specific environment information through docker-machine env as follows
export DOCKER_TLS_VERIFY="1"export DOCKER_HOST="tcp://192.168.99.100:2376"export DOCKER_CERT_PATH="C:\Users\TheGeniesis\.docker\machine\machines\default"export DOCKER_MACHINE_NAME="default"export COMPOSE_CONVERT_WINDOWS_PATHS="true"# Run this command to configure your shell:# eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env)
Solution:
Execute eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env) before executing docker-compose xxx command on terminal
The specific path is subject to docker-machine env
The above content is the docker-compose command error in the window environment. What should I do? Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to the industry information channel.
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.