3

Each time I run the command "docker-compose run web ..." it results in another container being added to Kitematic, so that I have a list of containers like "image-name_web_run_1" and so on with each run of docker-compose.

Is this expected behaviour? If so, how do I work around it?

4

2 に答える 2

1

新しいコンテナのことですか?これは の予想される動作です。httpsdocker-compose run ://docs.docker.com/compose/reference/run/ を参照してください。

使うつもりだったのdocker-compose exec?例docker-compose exec web /bin/sh : https://docs.docker.com/compose/reference/exec/

于 2016-07-05T22:56:56.530 に答える