फ़ाइल को डॉकर कंटेनर से होस्ट करने के लिए कॉपी करें
docker cp <containerId>:/file/path/within/container /host/path/target
फ़ाइल को होस्ट से डॉकर कंटेनर में कॉपी करें
docker cp foo.txt mycontainer:/foo.txt
dockerfile उदाहरण
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
डोकर ARG
$ docker build --build-arg some_variable_name=a_value
dockerfile विशिष्ट फ़ाइलों की प्रतिलिपि
COPY ["__BUILD_NUMBER", "README.md", "gulpfile", "another_file", "./"]
All the files and folders, the last is destination
डॉकरफाइल रन ऐप सीएमडी
RUN apt-get install python3
CMD echo "Hello world"
ENTRYPOINT echo "Hello world"