xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Docker In Action All In One

Docker In Action All In One

Docker 实战

https://docs.docker.com/get-started/overview/

Docker Engine

Docker Architecture

install

https://docs.docker.com/engine/install/

Docker Desktop

https://download.docker.com/mac/stable/Docker.dmg

Docker vs VM

docker commands


docker pull

docker build

# 
docker images

# 
docker run

# 
docker stop


docker commit  -m "message" container id new-container-name


# 
docker ps

docker ps -a

docker rmi id


docker rm ids

Dockerfile

FROM ubuntu
MAINTAINER admin@xyqfrms.xyz
RUN sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y nginx
COPY index.html /var/www/html
ENTRYPOINT ["usr/sbin/nginx", "-g", "daemon off;"]
EXPOSE 80

Dockerfile 语法

FROM base image/基础镜像
RUN  执行 Linux shell 命令
CMD 执行 Windows shell 命令
COPY 复制
ADD 添加文件
EXPOSE 暴露端口

WORKDIR    指定路径
MAINTAINER 维护者
ENV        设定环境变量
ENTRYPOINT 容器入口
USER       指定用户
VOLUME     mount point

image

镜像

container

容器

Docker Desktop

includes Docker Engine, Docker CLI client, Docker Compose, Notary, Kubernetes, and Credential Helper.

https://docs.docker.com/docker-for-mac/install/

https://hub.docker.com/editions/community/docker-ce-desktop-mac/

Kubernetes / k8s

Kubernetes & container orchestration

Kubernetes 容器编排

https://www.ibm.com/topics/container-orchestration

https://www.ibm.com/cn-zh/topics/container-orchestration

(🐞 反爬虫测试!打击盗版⚠️)如果你看到这个信息, 说明这是一篇剽窃的文章,请访问 https://www.cnblogs.com/xgqfrms/ 查看原创文章!

refs



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2020-09-17 11:06  xgqfrms  阅读(258)  评论(8编辑  收藏  举报