Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Learning #86

Open
adodo0829 opened this issue Jul 29, 2020 · 0 comments
Open

Docker Learning #86

adodo0829 opened this issue Jul 29, 2020 · 0 comments

Comments

@adodo0829
Copy link
Owner

Docker Learning

# FROM:定制的镜像都是基于 FROM 的镜像;
# 这里的 nginx 就是定制需要的基础镜像。后续的操作都是基于 nginx。
FROM nginx

# RUN:用于执行后面跟着的命令行命令, 类似于在终端操作的 shell 命令
RUN echo '这是一个本地构建的nginx镜像'

# docker build -t nginx:test . // . 是上下文路径, 默认Dockerfile所在位置

# 跟写shell脚本类似
# https://www.runoob.com/docker/docker-dockerfile.html

# yaml语言
# https://www.runoob.com/w3cnote/yaml-intro.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant