Dockerfile copiar

Ejemplos de código

6
0

copiar archivo del contenedor docker al host

docker cp <containerId>:/file/path/within/container /host/path/target
1
0

copiar archivo del host al contenedor docker

docker cp foo.txt mycontainer:/foo.txt
1
0

ejemplo de dockerfile

FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
1
0

docker ARG

$ docker build --build-arg some_variable_name=a_value
0
0

dockerfile copiar archivos específicos

COPY ["__BUILD_NUMBER", "README.md", "gulpfile", "another_file", "./"]
		All the files and folders, the last is destination
-2
0

dockerfile ejecutar aplicación cmd

RUN apt-get install python3
CMD echo "Hello world"
ENTRYPOINT echo "Hello world"

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................