[Fixed]-Problem launching docker-compose : python modules not installed

52👍

I got a similar errorcode, but my solution was quite simple: docker wasn’t running.

sudo systemctl start docker 

0👍

Well, it seems to be due to a user rights problem.

If I launcher docker-compose up as normal user, I get this error.

Wereas, if I lauch it sudo… it seems to work, but fails with an error on sqlite :

Pulling db (sqlite3:)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling db (sqlite3:)...
ERROR: pull access denied for sqlite3, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Seems django doesn’t like sqlite in Docker…

I’m on ArchLinux.

Here is the docker info

:

Client:
 Debug Mode: false

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 1
 Server Version: 19.03.13-ce
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: c623d1b36f09f8ef6536a057bd658b3aa8632828.m
 runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.9.2-arch1-1
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 15.48GiB
 Name: OCTO-JBAL
 ID: AI6G:SVGS:4YDY:U37Q:BE7E:MW6P:CY4E:BLPY:AN3D:QODN:4ZIJ:4OHX
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

It seems $DOCKER_HOST is empty… but cannot know which value to set on this variable.

👤Skeepy

0👍

I also faced similar errors when launching docker-compose. In my case, I had not installed docker prior to installing docker-compose. This was on fresh install of Ubuntu 20.04.

Leave a comment