当我在Windows 10中执行docker-compose -f docker-compose.yml up
时,在GIT MING64中,在Powershell中,也可以在命令提示符下面找到问题,任何人都可以帮助我。
$docker-compose -f docker-compose.yml up
Starting common_configserver_1 ... done
Starting common_configserver_1 ... done
Starting common_licensingservice_1 ... done
[9624] Failed to execute script docker-compose
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose\cli\main.py", line 71, in main
File "compose\cli\main.py", line 127, in perform_command
File "compose\cli\main.py", line 1065, in up
File "compose\cli\log_printer.py", line 87, in run
File "compose\cli\log_printer.py", line 245, in consume_queue
File "compose\cli\log_printer.py", line 160, in tail_container_logs
File "compose\utils.py", line 61, in split_buffer
File "compose\utils.py", line 37, in stream_as_text
File "site-packages\docker\utils\socket.py", line 73, in frames_iter
File "site-packages\docker\utils\socket.py", line 60, in next_frame_size
File "site-packages\docker\utils\socket.py", line 45, in read_exactly
File "site-packages\docker\utils\socket.py", line 32, in read
OSError: [Errno 9] Bad file descriptor
Attaching to common_database_1, common_configserver_1, common_licensingservice_1
下面是我的docker-compose.yml文件内容。
version: '3.6'
services:
configserver:
image: johncarnell/tmx-confsvr:chapter3
ports:
- "8888:8888"
environment:
ENCRYPT_KEY: "IMSYMMETRIC"
database:
image: postgres:9.5
ports:
- "5432:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "p0stgr@s"
POSTGRES_DB: "eagle_eye_local"
licensingservice:
image: johncarnell/tmx-licensing-service:chapter3
ports:
- "8080:8080"
environment:
PROFILE: "default"
CONFIGSERVER_URI: "http://configserver:8888"
CONFIGSERVER_PORT: "8888"
DATABASESERVER_PORT: "5432"
ENCRYPT_KEY: "IMSYMMETRIC"
这是我的泊坞窗版本信息。
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:06:28 2018
OS/Arch: windows/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:14:32 2018
OS/Arch: linux/amd64
Experimental: true