会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
song.yan
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
48
下一页
2023年1月12日
test
摘要: Docker 入门笔记 - 容器之间互访的三种方式 (imdst.com)
阅读全文
posted @ 2023-01-12 09:34 song.yan
阅读(10)
评论(0)
推荐(0)
2023年1月10日
docker搭建nacos集群
摘要: 第一步:准备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
阅读(367)
评论(0)
推荐(0)
docker安装mysql
摘要: 搜索镜像名字 docker search mysql 在网页端搜索版本列表:https://hub.docker.com/ 点击标题,在下面选出需要的版本号 拉取镜像 docker pull mysql:8.0 查看镜像列表 docker images 运行 docker run -p 21000:
阅读全文
posted @ 2023-01-10 11:42 song.yan
阅读(34)
评论(0)
推荐(0)
2023年1月9日
docker-compose常用命令
摘要: build:本地创建镜像 command:覆盖缺省命令 depends_on:链接容器 ports:暴露端口volumes:卷 image:pull镜像 up:启动 stop:停止 rm:删除 logs:查看日志ps:列出服务相关容器
阅读全文
posted @ 2023-01-09 09:27 song.yan
阅读(77)
评论(0)
推荐(0)
2023年1月7日
docker-Registry镜像仓库
摘要: 一、术语 host:宿主机 image:镜像 container:容器 registry:仓库 daemon:守护进程 client:客户端 二、registry命令 在仓库中搜索镜像 docker search nginx 在仓库拉取镜像 docker pull nginx 将我自己的镜像推送到镜
阅读全文
posted @ 2023-01-07 18:01 song.yan
阅读(124)
评论(0)
推荐(0)
docker-compose
摘要: 一、安装 下载安装 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:01 song.yan
阅读(36)
评论(0)
推荐(0)
ubuntu常用命令
摘要: 创建文件夹 mkdir test 创建文件 touch test.txt 编辑文件 vi test.txt 查看文件 cat test.txt 写入文件 echo "new content" > index.html
阅读全文
posted @ 2023-01-07 15:42 song.yan
阅读(22)
评论(0)
推荐(0)
docker-Volume
摘要: volume:提供独立于容器之外的持久化存储 一、 持久化地址 docker run -d --name nginx-v2 -v /usr/share/nginx/html nginx inspect检查 返回容器的所有信息(Mounts.Source的地址) docker inspect ngin
阅读全文
posted @ 2023-01-07 14:54 song.yan
阅读(36)
评论(0)
推荐(0)
DockerFile
摘要: 一个简单的示例 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
阅读(21)
评论(0)
推荐(0)
2023年1月6日
docker常用命令
摘要: 查看镜像 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
阅读(24)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
48
下一页
公告