Docker Compose – Remove dangling service

While getting to know docker and docker compose, I removed a volume that was still in use by docker compose.

Now, docker compose prints the following error message for everything I try to do (stop, start, ps, rm, …):

  • connecting Docker on Windows to Google Cloud Datalab
  • How to add locale in docker container
  • Is using phusion/baseimage still worth it? [closed]
  • Dockerfile RUN command result
  • Installing PDO driver in Docker
  • Vagrant using docker as provider on MacOS, impossible to mount directory in container
  • ERROR: Named volume “db_data:/var/lib/mysql:rw” is used in service “db” but no declaration was found in the volumes section.

    Therefore, I am now unable to work with docker compose in any way. As I am out of ideas, I am reaching out for some support.

  • Connecting to RDS Mysql from docker container with Wordpress
  • Cannot connect to mongodb container from linux host
  • Java stack trace overlaps error message
  • Docker daemon not starting after adding the -H flag
  • Microsoft Word crashes when invoking its COM inside Docker Container
  • Vagrant + Docker + Tomcat: sharing webapps folder with container
  • One Solution collect form web for “Docker Compose – Remove dangling service”

    Checkout this excellent post about how to clean Docker leftovers (containers / volumes..)

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.