mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-26 23:16:17 +00:00
9f9151580d
CMD ["nginx" "-g" "daemon off;"] -> CMD ["nginx", "-g", "daemon off;"] |
||
---|---|---|
.. | ||
add.md | ||
arg.md | ||
cmd.md | ||
copy.md | ||
entrypoint.md | ||
env.md | ||
expose.md | ||
healthcheck.md | ||
onbuild.md | ||
README.md | ||
references.md | ||
user.md | ||
volume.md | ||
workdir.md |
Dockerfile 指令详解
我们已经介绍了 FROM
,RUN
,还提及了 COPY
, ADD
,其实 Dockerfile 功能很强大,它提供了十多个指令。这里我们继续讲解剩下的指令。