上一页 1 2 3 4 5 6 ··· 48 下一页
  2023年1月10日
摘要: 第一步:准备mysql数据库,在mysql数据库执行指定的sql脚本。 第二步:拉取镜像 #查找镜像 sudo docker search nacos #拉取镜像 sudo docker search nacos/nacos-server:v2.1.1 第三步:运行镜像 sudo docker ru 阅读全文
posted @ 2023-01-10 17:40 song.yan 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 搜索镜像名字 docker search mysql 在网页端搜索版本列表:https://hub.docker.com/ 点击标题,在下面选出需要的版本号 拉取镜像 docker pull mysql:8.0 查看镜像列表 docker images 运行 docker run -p 21000: 阅读全文
posted @ 2023-01-10 11:43 song.yan 阅读(19) 评论(0) 推荐(0) 编辑
  2023年1月9日
摘要: build:本地创建镜像 command:覆盖缺省命令 depends_on:链接容器 ports:暴露端口volumes:卷 image:pull镜像 up:启动 stop:停止 rm:删除 logs:查看日志ps:列出服务相关容器 阅读全文
posted @ 2023-01-09 09:27 song.yan 阅读(56) 评论(0) 推荐(0) 编辑
  2023年1月7日
摘要: 一、术语 host:宿主机 image:镜像 container:容器 registry:仓库 daemon:守护进程 client:客户端 二、registry命令 在仓库中搜索镜像 docker search nginx 在仓库拉取镜像 docker pull nginx 将我自己的镜像推送到镜 阅读全文
posted @ 2023-01-07 18:02 song.yan 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 一、安装 下载安装 curl -L https://get.daocloud.io/docker/compose/releases/download/v2.4.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose 阅读全文
posted @ 2023-01-07 18:02 song.yan 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 创建文件夹 mkdir test 创建文件 touch test.txt 编辑文件 vi test.txt 查看文件 cat test.txt 写入文件 echo "new content" > index.html 阅读全文
posted @ 2023-01-07 15:43 song.yan 阅读(12) 评论(0) 推荐(0) 编辑
摘要: volume:提供独立于容器之外的持久化存储 一、 持久化地址 docker run -d --name nginx-v2 -v /usr/share/nginx/html nginx inspect检查 返回容器的所有信息(Mounts.Source的地址) docker inspect ngin 阅读全文
posted @ 2023-01-07 14:55 song.yan 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 一个简单的示例 FROM alpine:latest MAINTAINER songyan CMD echo 'hello docker' 创建镜像 docker build -t hello_docker -f test.dockerFile . 运行这个镜像 docker run hello_d 阅读全文
posted @ 2023-01-07 12:04 song.yan 阅读(10) 评论(0) 推荐(0) 编辑
  2023年1月6日
摘要: 查看镜像 docker images 运行一个镜像 docker run -p 8080:80 -d nginx 查看正在运行的镜像 docker ps 创建镜像 docker build -t hello_docker -f test.dockerFile . 停止一个容器的运行(817689e0 阅读全文
posted @ 2023-01-06 19:55 song.yan 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 请求路径有三种格式: (1)account_server/v1/users/6f0f1d91-9b76-4499-af64-d05a780c0287/profile【UPDATE】 (2)account_server/v14/users/6f0f1d91-9b76-4499-af64-d05a780 阅读全文
posted @ 2023-01-06 15:23 song.yan 阅读(69) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 48 下一页