Skip to content

Docker-compose no longer gracefully stops #8523

@cchantep

Description

@cchantep

Expected behavior

Successful graceful shutdown of docker-compose

Actual behavior

All containers are stopped, but compose is hanging on forever until we are forced to kill it.

Gracefully stopping... (press Ctrl+C again to force)
[+] Running 7/7
 ⠿ Container PRJ-dev_spark-worker_1          Stopped                                                          11.3s
 ⠿ Container PRJ-dev_spark-master_1          Stopped                                                          12.2s
 ⠿ Container PRJ-dev_kafka-schemaregistry_1  Stopped                                                          11.3s
 ⠿ Container PRJ-dev_mongodb_1               Stopped                                                          12.3s
 ⠿ Container PRJ-dev_object-storage_1        Stopped                                                           1.7s
 ⠿ Container PRJ-dev_kafka_1                 Stopped                                                           4.3s
 ⠿ Container PRJ-dev_zookeeper_1             Stopped                                                          11.4s

(hanging forever ...)

^CERRO[3631] got 3 SIGTERM/SIGINTs, forcing shutdown      
[+] Running 0/0
 ⠿ Container PRJ-dev_mongodb_1               Error while Killing                                               0.0s
 ⠿ Container PRJ-dev_spark-worker_1          Error while Killing                                               0.0s
 ⠿ Container PRJ-dev_object-storage_1        Error while Killi...                                              0.0s
 ⠿ Container PRJ-dev_spark-master_1          Error while Killing                                               0.0s
 ⠿ Container PRJ-dev_kafka-schemaregistry_1  Error while...                                                    0.0s
 ⠿ Container PRJ-dev_kafka_1                 Error while Killing                                               0.0s
 ⠿ Container PRJ-dev_zookeeper_1             Error while Killing  

Information

  • macOS Version: 10.15.7
  • Intel core i7
  • Docker Desktop version: 3.5.1 (3.5.1.7)
  • Docker Compose version: 2.0.0-beta.4

Steps to reproduce the behavior

  • On a fresh Docker Desktop (after data purge), docker-compose -f any-conf.yml up
  • Once everything is up, Ctrl+C to gracefully stop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions