Copia dockerfile

Esempi di codice

6
0

copia il file dal contenitore docker all'host

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

copia il file dall'host al contenitore docker

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

esempio di dockerfile

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

finestra mobile ARG

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

dockerfile copia file specifici

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

file dockerfile esegui app cmd

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

In altre lingue

Questa pagina è in altre lingue

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