Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.77k stars 197 forks source link

Documentation - container id vs container name #7

Closed reggiepierce closed 5 years ago

reggiepierce commented 5 years ago

The documentation says to use: docker run -v /var/run/docker.sock:/var/run/docker.sock red5d/docker-autocompose

However, that always failed with: That container is not running.

The following does work: docker run -v /var/run/docker.sock:/var/run/docker.sock red5d/docker-autocompose

I would suggest updating the docs. Bonus points for updating your code to accept a name OR id.

Red5d commented 5 years ago

Those two commands you mentioned look the same to me, though they're both missing a container name/id. I've now updated the tool to take a list of either container names or ids as input. See the updated README page.