Construire un fichier dockerfile

Exemples de code

20
0

construction de docker

docker build -t [tag] .
1
0

exemple de fichier dockerfile

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

comment créer une image docker à partir d'un nom de fichier personnalisé

cat DockerFile.debian.foo | docker build -t debian.foo -
0
0

construction de docker à partir du fichier dockerfile

$ docker build - < Dockerfile
0
0

sortie de construction de suppression de la construction docker

docker image build -t [name] . -q
-2
0

fichier dockerfile exécuter l'application cmd

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

Dans d'autres langues

Cette page est dans d'autres langues

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