duckietown / docs-opmanual_duckiebot

Other
1 stars 0 forks source link

docker stop picam did not stop picam #51

Closed manish-pra closed 5 years ago

manish-pra commented 6 years ago

Context

I wanted to stop picam container

Command line

 $ docker stop picam

Problem

What did you expect?

Not to recieve any image from camera

What happened instead?

I could still recieve the images. And to stop picam i had to stop it from portainer.io

Diagnostics

What does the rpi-health diagnostics say? (You can find these in Portainer, or at http://duckiebot.local:8085.)

or

Error report

Please report here the complete error message.

Note that the last error is never the error that caused the issue. You have to find the first error in the log.

You can find the container log in the Portainer interface.

Other notes

Other comments?

AndreaCensi commented 6 years ago

What is the output of "docker stop ..."? What does "docker ps" say?

Also note there is an issue template for Docker problems.

manish-pra commented 6 years ago

docker stop picam returns "picam", but does not stop picam, i can still load image in the browser. docker ps: will still have have picam running. docker container list -a: will also have picam in it. docker rm picam, return picam and will remove picam from docker container list -a It is weird to me as docker stop doesn't seem to do anything. I can directly do docker rm and then it removes the container.

AndreaCensi commented 6 years ago

The last image will always be there even if you stop the container.

manish-pra commented 6 years ago

When i stop the picam container by terminal using docker stop picam, images even gets updated.

But if stop using container portainer.io, then it is actually stopped and i cannot images anymore.