docker-compose kill and rm always return 0

Bug #1620255 reported by Ara Pulido
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Docker snap
Fix Released
Undecided
Unassigned

Bug Description

docker-compose kill and rm commands act a bit differently than their counterparts in docker.

docker-compose kill and rm always return "0" (unless the docker service isn't running), so we should check more in the compose-single job.

When we kill the container we should do a "docker ps -a" and check that our container is there and its status is "Exited"

When we rm the container we should do a "docker ps -a" and check that our container is not there.

Changed in plainbox-provider-docker:
status: New → Fix Committed
Changed in plainbox-provider-docker:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.