Ok, so you have a container named pvoutput
and, you have a container called pensive_tereshkova
. Docker cannot run containers with same name. If they are not running you can delete them with docker rm pvoutput
and docker rm tereshkova
and try run it again.
Clarifying:
A named container can be restarted with same parameter at any time, so for instance:
docker run -name test-named -v /some/place:/some/other-place -v /dev/ttyUSB0:/dev/ttyUB0 jrbenito/pvouput
will create a container named test-named
based of on image jrbenito/pvoutput
that contains two volume mounts (including a device ttyUSB0). Imagine you reboot your system and want to run it again, you just need:
docker start test-named
(to stop it, use stop instead of start)
This way, all configurations are preserved. However, if you do not name your container:
docker run -v /some/place:/some/other-place -v /dev/ttyUSB0:/dev/ttyUB0 jrbenito/pvouput
Docker will create a random name for you, next time you need to run the entire command again to create another container (or do docker ps -a
and find the random name created by docker to use with start command).
Finally, if you try to configure a named container:
docker run -name test-named -v /some/place/new:/some/other-place/new -v /dev/ttyUSB0:/dev/ttyUB0 jrbenito/pvouput
(I changed the -v parameter)
docker will complain that a container named test-named
already exist, so, for this to work, you first need to remove it with docker rm test-named
.
BRs,
José