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


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

sudo systemctl start docker 


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


 Debug Mode: false

 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
  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:
   Profile: default
 Kernel Version: 5.9.2-arch1-1
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 15.48GiB
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Experimental: false
 Insecure Registries:
 Live Restore Enabled: false

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



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