From 43f75a28b0971b387e973baa46312ca9387ffb8f Mon Sep 17 00:00:00 2001 From: Baohua Yang Date: Wed, 24 May 2017 11:40:47 +0800 Subject: [PATCH] Update v2 registry path --- repository/local_repo.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repository/local_repo.md b/repository/local_repo.md index e279ee4..39138da 100644 --- a/repository/local_repo.md +++ b/repository/local_repo.md @@ -28,10 +28,10 @@ $ sudo docker run \ ``` $ sudo docker run -d -p 5000:5000 -v /home/user/registry-conf:/registry-conf -e DOCKER_REGISTRY_CONFIG=/registry-conf/config.yml registry ``` -默认情况下,仓库会被创建在容器的 `/tmp/registry` 下。可以通过 `-v` 参数来将镜像文件存放在本地的指定路径。 +默认情况下,仓库会被创建在容器的 `/var/lib/registry `(v1 中是`/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 ``` #### 本地安装