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, …):

  • Kubernetes pod not binding volumes to container
  • Passing variable from container start to file
  • Eclipse Che not starting up
  • Load kernel module from mac os sierra host to a docker container
  • Docker & PM2: String based CMD with environment variables
  • How should I structure dockerized RabbitMQ?
  • 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.

  • Docker CE on Mac OSX hanging on startup
  • Install/Start YARN in Docker
  • Error running kubelet, node not ready
  • Alternatives to inotify for watching file changes in a NFS volume in a Docker container?
  • Connect with filezilla to docker container
  • Accessing to mysql from host to container in cli
  • 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.