From e8389a46b39014c14ade8d76c7edf08fd7526a20 Mon Sep 17 00:00:00 2001 From: chenan Date: Tue, 29 Nov 2016 10:14:36 +0800 Subject: [PATCH] fix:local_repo.md --- repository/local_repo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/local_repo.md b/repository/local_repo.md index e279ee4..bf07f91 100644 --- a/repository/local_repo.md +++ b/repository/local_repo.md @@ -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 ``` #### 本地安装