How do you get a file from a windows host to linux docker container? -


i've been trying things like

docker run -t -i -v c/my-project:/usr/share/my-project mp /bin/bash

(mp name of container) and

docker run -t -i -v c/my-project:/usr/share/my-project:z mp /bin/bash,

but while directory my-project created in docker image, empty despite fact directory not empty in windows.

i've resorted adding files in dockerfile build run mkdir , add c/my-project sub-optimal.

you cannot host linux docker containers directly on windows. there linux vm host 'docker machine'/boot2docker created you. have transfer files vm.

i don't recommend using docker machine due frustrations ip , filesystem mapping. explicitly create own linux vm , manage docker way.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -