Home  >  Q&A  >  body text

docker - 各位电脑上有多少个容器啊?容器一多,自己都搞混了,咋办呢?

docker ps -a | wc -l 刚才一看20多个,郁闷:(
都不知道该启动哪个了

是否不用的容器马上删除掉是一种比较好的做法?

你们docker ps -a | wc -l 返回的是多少?

天蓬老师天蓬老师2757 days ago899

reply all(5)I'll reply

  • 世界只因有你

    世界只因有你2017-04-25 09:05:54

    https://github.com/shipyard/s...

    You can deploy this and there will be a web UI page. It can be used to manage many operations, such as starting, stopping, and deleting containers. Mirror download. Monitor the running status of containers.

    reply
    0
  • 某草草

    某草草2017-04-25 09:05:54

    What Docker advocates is that it can be deleted immediately after use. Since Docker can create, start, stop, and delete in seconds, it can be easily created when used and deleted when not used.

    reply
    0
  • 習慣沉默

    習慣沉默2017-04-25 09:05:54

    I have only a few open containers, including Jekyll, Mongo, Redis, etc., which are commonly used in daily development.

    reply
    0
  • 漂亮男人

    漂亮男人2017-04-25 09:05:54

    It is recommended to use the docker management platform and use tags to mark the container functions. This will make it easier for you to handle when you have more containers.

    reply
    0
  • PHPz

    PHPz2017-04-25 09:05:54

    You can use the container management platform provided by some cloud service companies. Some are free. It is best to use --name when running.

    reply
    0
  • Cancelreply