Editing Dockerfile
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | Dockerfile is a text file where you define instructions used to create your Docker images, check official Dockerfile Reference documentation: https://docs.docker.com/engine/reference/builder/<ref>https://en.wikiversity.org/wiki/DevOps/Docker/Dockerfile</ref> | |
For creating this file with instructions usually called Dockerfile you can use the following keywords<ref>https://kapeli.com/cheat_sheets/Dockerfile.docset/Contents/Resources/Documents/index</ref>: | For creating this file with instructions usually called Dockerfile you can use the following keywords<ref>https://kapeli.com/cheat_sheets/Dockerfile.docset/Contents/Resources/Documents/index</ref>: | ||
− | * | + | * ADD |
− | * | + | * ARG |
− | * | + | * CMD, for executing containers. https://docs.docker.com/engine/reference/builder/#cmd |
− | * | + | * COPY |
− | * | + | * ENTRYPOINT: https://docs.docker.com/engine/reference/builder/#entrypoint |
− | * | + | * ENV |
− | * | + | * EXPOSE |
− | * | + | * FROM https://docs.docker.com/engine/reference/builder/#from |
− | * [[HEALTHCHECK]] https://docs.docker.com/engine/reference/builder/#healthcheck | + | * [[HEALTHCHECK]] https://docs.docker.com/engine/reference/builder/#healthcheck |
* LABEL | * LABEL | ||
* ONBUILD | * ONBUILD | ||
− | * | + | * RUN: https://docs.docker.com/engine/reference/builder/#run |
* SHELL | * SHELL | ||
* STOPSIGNAL | * STOPSIGNAL | ||
− | * | + | * USER |
− | * | + | * VOLUME |
* WORKDIR | * WORKDIR | ||
Line 24: | Line 24: | ||
# Read Understand how CMD and ENTRYPOINT interact https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact | # Read Understand how CMD and ENTRYPOINT interact https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact | ||
# Learn about [[start configuration behavior and restart policy]] | # Learn about [[start configuration behavior and restart policy]] | ||
− | # Learn | + | # Learn about <code>.[[dockerignore]]</code> file |
− | + | ||
== Related terms == | == Related terms == | ||
− | |||
− | |||
− | |||
* [[Docker Engine release notes]] | * [[Docker Engine release notes]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
− | |||
* {{docker-compose}} | * {{docker-compose}} | ||
+ | *{{Docker}} | ||
+ | [[Category:Cloud computing]] | ||
+ | [[Category:Software development]] | ||
+ | [[Category:Server administration]] | ||
[[Category:Docker]] | [[Category:Docker]] |
Advertising: