How to deploy Dockerfile and application files to boot2docker

前端 未结 6 780
孤城傲影
孤城傲影 2021-02-01 14:16

I\'m just starting to learn Docker, and I\'m trying to get a simple setup with boot2docker on Windows. I could not find in any tutorial or samples online how to make my project

6条回答
  •  不知归路
    2021-02-01 14:26

    ssh the file into your VM

    dockerfile=$(cat LocalDockerfile)
    boot2docker ssh "echo '$dockerfile' > Dockerfile"
    

    wrote it up here http://micahasmith.github.io/2014/11/07/copying-files-into-boot2docker/

提交回复
热议问题