J
J
Jamal Absalimov2020-01-11 23:42:22
ubuntu
Jamal Absalimov, 2020-01-11 23:42:22

Error starting Docker. Trouble with python?

My OS is Ubuntu 18.04
Docker and docker-compose installed according to the documentation https://docs.docker.com
When building any image, the following message is displayed


sudo docker-compose up -d
[sudo] password for jamal:
Creating network "dockers_default" with the default driver
Pulling nginx (nginx:)...
Traceback (most recent call last):
File "bin/docker-compose", line 6, in
File "compose/cli/main.py", line 72, in main
File "compose/cli/main.py", line 128, in perform_command
File "compose/cli/main.py", line 1107, in up
File "compose/cli/main.py", line 1103, in up
File "compose/project.py", line 542, in up
File "compose/service.py", line 360, in ensure_image_exists
File "compose/service .py", line 1248, in pull
File "compose/progress_stream.py",line 102, in get_digest_from_pull
File "compose/service.py", line 1213, in _do_pull
File "site-packages/docker/api/image.py", line 396, in pull
File "site-packages/docker/auth.py", line 48, in get_config_header
File "site-packages/docker/auth.py", line 324, in resolve_authconfig
File "site-packages/docker/auth.py", line 235, in resolve_authconfig
File "site-packages/docker/auth.py" , line 262, in _resolve_authconfig_credstore
File "site-packages/docker/auth.py", line 287, in _get_store_instance
File "site-packages/docker/credentials/store.py", line 25, in __init__
docker.credentials.errors. InitializationError:docker-credential-secretservice not installed or not available in PATH
[16794] Failed to execute script docker-compose

What could be the problem ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Georg Gaal, 2020-02-02
@JamalWeb

The problem is not in docker, but in the fact that the docker-compose and docker-credential-secretservice packages are broken in ubuntu. Solved
by installing docker-compose using pip install (bad option) or - better - downloading from an offsite site and copying the binary file in /usr/local/bin
You can also use docker-compose as a docker container

S
sergey, 2020-01-11
kuzmin @sergueik

probably forgot how to install docker
https://www.digitalocean.com/community/tutorials/h...

sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question