Skip to content

Commit

Permalink
Registry port support config.
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Liang <[email protected]>
  • Loading branch information
liangyuanpeng committed Aug 1, 2024
1 parent 4f077dd commit 4d67ea7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/reg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ if [ "$(docker ps -aq -f name=kcl-registry)" ]; then
docker rm kcl-registry
fi

export REGISTRY_PORT=${REGISTRY_PORT:-"5001"}

# start the Docker Registry with authentication
docker run -p 5001:5000 \
docker run -p ${REGISTRY_PORT}:5000 \
--restart=always \
--name kcl-registry \
-v /var/lib/registry:/var/lib/registry \
Expand Down

0 comments on commit 4d67ea7

Please sign in to comment.