How to copy files from host to Docker container?

前端 未结 30 2961
南方客
南方客 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:33

    The best way for copying files to the container I found is mounting a directory on host using -v option of docker run command.

提交回复
热议问题