我写了一个docker-compose文件来运行两个服务vernemq和nginx。当我在终端上运行命令docker-compose up时,我继续收到以下错误。 如果这可能有帮助,我正在将虚拟机与ubuntu 18.04映像一起使用
我尝试将IP地址留在vernemq服务中,但没有帮助。
这是我的docker compose文件
version: "3.7"
services:
vernemq:
image: erlio/docker-vernemq:1.8.0
hostname: vernemq
container_name: vernemq
expose:
- "1883"
- "9001"
ports:
- "IPaddress:1883:1883"
- "IPaddress:9001:9001"
volumes:
- ./configvol:/etc/vernemq
- ./datavol:/var/lib/vernemq
- ./logvol:/var/log/vernemq
network_mode: "host"
nginx:
image: nginx:1.16.0
hostname: nginx
container_name: robotWebView
expose:
- "80"
ports:
- "80:80"
volumes:
- ./nginxvol:/usr/share/nginx/html
network_mode: "host"
这是我得到的错误
# docker-compose up
Pulling vernemq (erlio/docker-vernemq:1.8.0)...
Traceback (most recent call last):
File "site-packages/dockerpycreds/store.py", line 80, in _execute
File "subprocess.py", line 356, in check_output
File "subprocess.py", line 438, in run
subprocess.CalledProcessError: Command '['/usr/bin/docker-credential-secretservice', 'get']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "site-packages/docker/auth.py", line 264, in _resolve_authconfig_credstore
File "site-packages/dockerpycreds/store.py", line 35, in get
File "site-packages/dockerpycreds/store.py", line 93, in _execute
dockerpycreds.errors.StoreError: Credentials store docker-credential-secretservice exited with "Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached".
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bin/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 1085, in up
File "compose/cli/main.py", line 1081, in up
File "compose/project.py", line 527, in up
File "compose/service.py", line 354, in ensure_image_exists
File "compose/service.py", line 1222, in pull
File "compose/progress_stream.py", line 102, in get_digest_from_pull
File "compose/service.py", line 1187, in _do_pull
File "site-packages/docker/api/image.py", line 381, in pull
File "site-packages/docker/auth.py", line 48, in get_config_header
File "site-packages/docker/auth.py", line 322, in resolve_authconfig
File "site-packages/docker/auth.py", line 235, in resolve_authconfig
File "site-packages/docker/auth.py", line 281, in _resolve_authconfig_credstore
docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-secretservice exited with "Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached".',)
[10433] Failed to execute script docker-compose