How to copy files from host to Docker container?

前端 未结 30 2494
南方客
南方客 2020-11-22 06:58

I am trying to build a backup and restore solution for the Docker containers that we work with.

I have Docker base image that I have created, ubuntu:base

30条回答
  •  孤独总比滥情好
    2020-11-22 07:29

    Many that find this question may actually have the problem of copying files into a Docker image while it is being created (I did).

    In that case, you can use the COPY command in the Dockerfile that you use to create the image.

    See the documentation.

提交回复
热议问题