From 5db18335baccac9e56bdc97d4f54406862ae4b3a Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Wed, 27 May 2020 02:07:29 +0300 Subject: [PATCH] notes update --- private/Notes.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/private/Notes.txt b/private/Notes.txt index 9d2bfa7..617b249 100644 --- a/private/Notes.txt +++ b/private/Notes.txt @@ -19,4 +19,26 @@ docker image build -t "reverse-proxy-frontend:1.0.0" . Run image: docker run -p 5055:80 -it reverse-proxy-frontend:1.0.0 +Push image to registry: +--tag image +docker tag reverse-proxy-frontend:1.0.0 cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0 + +--login to registry +docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000 + +--push image +docker push cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0 + +Pull image from registry +--login to registry with readonly rights +docker login --username=***REMOVED*** --password=***REMOVED*** cloud.canister.io:5000 + +--pull image +docker pull cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0 + +Run container in prod env +docker run --restart=always -p 5005:80 -d cloud.canister.io:5000/tstanciu/reverse-proxy:frontend-1.0.0 + +Rename container +docker rename reverse-proxy-frontend ############################################################################################## \ No newline at end of file