摘要:
Docker 入门笔记 - 容器之间互访的三种方式 (imdst.com) 阅读全文
摘要:
第一步:准备mysql数据库,在mysql数据库执行指定的sql脚本。 第二步:拉取镜像 #查找镜像 sudo docker search nacos #拉取镜像 sudo docker search nacos/nacos-server:v2.1.1 第三步:运行镜像 sudo docker ru 阅读全文
摘要:
搜索镜像名字 docker search mysql 在网页端搜索版本列表:https://hub.docker.com/ 点击标题,在下面选出需要的版本号 拉取镜像 docker pull mysql:8.0 查看镜像列表 docker images 运行 docker run -p 21000: 阅读全文
摘要:
build:本地创建镜像 command:覆盖缺省命令 depends_on:链接容器 ports:暴露端口volumes:卷 image:pull镜像 up:启动 stop:停止 rm:删除 logs:查看日志ps:列出服务相关容器 阅读全文
摘要:
一、术语 host:宿主机 image:镜像 container:容器 registry:仓库 daemon:守护进程 client:客户端 二、registry命令 在仓库中搜索镜像 docker search nginx 在仓库拉取镜像 docker pull nginx 将我自己的镜像推送到镜 阅读全文
摘要:
一、安装 下载安装 curl -L https://get.daocloud.io/docker/compose/releases/download/v2.4.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose 阅读全文
摘要:
创建文件夹 mkdir test 创建文件 touch test.txt 编辑文件 vi test.txt 查看文件 cat test.txt 写入文件 echo "new content" > index.html 阅读全文
摘要:
volume:提供独立于容器之外的持久化存储 一、 持久化地址 docker run -d --name nginx-v2 -v /usr/share/nginx/html nginx inspect检查 返回容器的所有信息(Mounts.Source的地址) docker inspect ngin 阅读全文
摘要:
一个简单的示例 FROM alpine:latest MAINTAINER songyan CMD echo 'hello docker' 创建镜像 docker build -t hello_docker -f test.dockerFile . 运行这个镜像 docker run hello_d 阅读全文
摘要:
查看镜像 docker images 运行一个镜像 docker run -p 8080:80 -d nginx 查看正在运行的镜像 docker ps 创建镜像 docker build -t hello_docker -f test.dockerFile . 停止一个容器的运行(817689e0 阅读全文