docker-airflow icon indicating copy to clipboard operation
docker-airflow copied to clipboard

How do I stop systemd docker-compose containers

Open byteshiva opened this issue 3 years ago • 2 comments

I see the below docker instances are added automatically to systemd, It started appearing after running docker celery-docker image,

Can you let me know if its defined in docker-celery compose file?

  var-lib-docker-aufs-mnt-41d4f****.mount             loaded active mounted   /var/lib/docker/aufs/mnt/41d4f>
  var-lib-docker-aufs-mnt-6edc2***.mount             loaded active mounted   /var/lib/docker/aufs/mnt/6edc2>
  var-lib-docker-aufs-mnt-210718**.mount             loaded active mounted   /var/lib/docker/aufs/mnt/210718>
  var-lib-docker-aufs-mnt-f99ff39**.mount             loaded active mounted   /var/lib/docker/aufs/mnt/f99ff39>

byteshiva avatar Oct 08 '20 19:10 byteshiva

Its apparent to assume supervisord is managing cluster and postgresql system service.

Can someone point me in the source code.

byteshiva avatar Oct 11 '20 02:10 byteshiva

After few search, found https://blog.container-solutions.com/running-docker-containers-with-systemd, which talks about running containers as systemd service.

The below command removes all the container instance and also its associated services. In my case it resolved the issue. However I will start as service when I require it in sandbox. But as of now the below command solved my issue.

$docker-compose -f docker-compose-CeleryExecutor.yml rm 

byteshiva avatar Oct 11 '20 12:10 byteshiva