Home  >  Q&A  >  body text

docker run busybox echo hello world这样的命令有什么意义?

每次运行创建一个容器,这个容器没有修过文件,那这个容器是否占用空间呢?占用多少空间?

滿天的星座滿天的星座2706 days ago1014

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-04-25 09:05:15

    This command is Hello World in Docker, and its meaning is similar to other Hello Worlds.

    The file system in Docker is based on UFS and uses incremental form to record file modifications. If there are no file modifications in the container, there will naturally be no file increments. However, this does not mean that the container will not occupy space if there are no files to modify it, because in addition to the file system in the container, the container itself also has description files, configuration information, etc. that need to be stored, which will naturally occupy some space.

    reply
    0
  • Cancelreply