Docker COPY Host ${HOME}/.cache to container

后端 未结 2 995
Happy的楠姐
Happy的楠姐 2021-01-18 11:01

I would like to copy my winetricks cache over to the docker container:

HOST:

~/.cache/winetricks

to CONTAINER

/home         


        
2条回答
  •  醉梦人生
    2021-01-18 11:49

    https://docs.docker.com/storage/volumes/#choose-the--v-or-mount-flag

    @Charles Duffy is right.

    dockerfile below

    VOLUME ["(change-to-full-path)/.cache/winetrick"]
    

    lanch value below

    -v (change-to-full-path)/.cache/winetricks:/home/myUser/.cache/winetricks
    

    This will allow you to set a volume, and then path it into the container

提交回复
热议问题