Most appropriate container for a data only container?

前端 未结 4 524
攒了一身酷
攒了一身酷 2021-02-05 02:33

What is the most appropriate (smallest, simplest) container to use for a data only Docker container?

In the documentation they use the training/postgres container. Howe

4条回答
  •  时光说笑
    2021-02-05 03:17

    I recommend the tianon/true image from this collection of dockerfiles. At 125 Byte, It is smaller than busybox based images:

    REPOSITORY                 TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
    tianon/true                latest              724d63a6172d        35 hours ago        125 B
    

    A container based on this image exits immediately which is appropriate for a storage only container.

提交回复
热议问题