mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-15 19:13:39 +00:00
fix:local_repo.md
This commit is contained in:
parent
f2d6f998ab
commit
e8389a46b3
@ -31,7 +31,7 @@ $ sudo docker run -d -p 5000:5000 -v /home/user/registry-conf:/registry-conf -e
|
||||
默认情况下,仓库会被创建在容器的 `/tmp/registry` 下。可以通过 `-v` 参数来将镜像文件存放在本地的指定路径。
|
||||
例如下面的例子将上传的镜像放到 `/opt/data/registry` 目录。
|
||||
```
|
||||
$ sudo docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry
|
||||
$ sudo docker run -d -p 5000:5000 -v /opt/data/registry:/var/lib/registry registry
|
||||
```
|
||||
|
||||
#### 本地安装
|
||||
|
Loading…
Reference in New Issue
Block a user