|
|
|
@ -842,7 +842,7 @@ drwxr-xr-x 2 root root 4096 Jan 31 09:17 volume02
|
|
|
|
|
|
|
|
|
|
查看挂载的路径
|
|
|
|
|
|
|
|
|
|
<img src="C:\Users\34897\AppData\Roaming\Typora\typora-user-images\image-20250201132524644.png" alt="image-20250201132524644" style="zoom:33%;" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -850,6 +850,65 @@ drwxr-xr-x 2 root root 4096 Jan 31 09:17 volume02
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##### 多个mysql共享数据
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### 发布镜像
|
|
|
|
|
|
|
|
|
|
发布到dockerhub
|
|
|
|
|
|
|
|
|
|
先注册,再发布
|
|
|
|
|
|
|
|
|
|
但是dockerhub 被墙了
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> 发布镜像到阿里云
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1. 创建命名空间
|
|
|
|
|
2. 创建容器镜像
|
|
|
|
|
3. push
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
lejings@ljs-Ubuntu-desktop:~$ docker login --username=lejings crpi-xhkkjekp4s82699q.cn-hangzhou.personal.cr.aliyuncs.com
|
|
|
|
|
Password:
|
|
|
|
|
WARNING! Your password will be stored unencrypted in /home/lejings/.docker/config.json.
|
|
|
|
|
Configure a credential helper to remove this warning. See
|
|
|
|
|
https://docs.docker.com/engine/reference/commandline/login/#credential-stores
|
|
|
|
|
|
|
|
|
|
Login Succeeded
|
|
|
|
|
lejings@ljs-Ubuntu-desktop:~$ docker tag c00d1bfef336 crpi-xhkkjekp4s82699q.cn-hangzhou.personal.cr.aliyuncs.com/ljs-docker-learn/test01:latest
|
|
|
|
|
lejings@ljs-Ubuntu-desktop:~$ docker push crpi-xhkkjekp4s82699q.cn-hangzhou.personal.cr.aliyuncs.com/ljs-docker-learn/test01:latest
|
|
|
|
|
The push refers to repository [crpi-xhkkjekp4s82699q.cn-hangzhou.personal.cr.aliyuncs.com/ljs-docker-learn/test01]
|
|
|
|
|
73555b06cc1c: Pushed
|
|
|
|
|
5f70bf18a086: Pushed
|
|
|
|
|
1e0c6e2924e9: Pushed
|
|
|
|
|
913fbba348dd: Pushed
|
|
|
|
|
f22a04c486a2: Pushed
|
|
|
|
|
245a1802bade: Pushed
|
|
|
|
|
e8b5117200e0: Pushed
|
|
|
|
|
0e744b9ca6a0: Pushed
|
|
|
|
|
687d50f2f6a6: Pushed
|
|
|
|
|
latest: digest: sha256:36343d1e1e58e789ec1c77be1b7a1b2de871c6d06dadb48c33f85b87999e2756 size: 2412
|
|
|
|
|
lejings@ljs-Ubuntu-desktop:~$
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
必须按照阿里云官方的步骤来
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|