From 1d3bdd6f0a97c959cb5137e8b9e78c99348c5b14 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 25 Apr 2021 00:39:36 +0300 Subject: [PATCH] notes update --- private/docker-notes.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/private/docker-notes.txt b/private/docker-notes.txt index c88519a..18cf7bb 100644 --- a/private/docker-notes.txt +++ b/private/docker-notes.txt @@ -11,23 +11,22 @@ docker run -p 5053:80 -it network-resurrector-frontend:1.0.0 Push image to registry: --tag image -docker tag network-resurrector-frontend:1.0.0 cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0 +docker tag network-resurrector-frontend:1.0.0 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0 --login to registry -docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000 +docker login --username=admin --password="***REMOVED***" alpine-nexus:8500 --push image -docker push cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0 +docker push alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0 Pull image from registry ---login to registry with readonly rights -docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000 +--login to registry --pull image -docker pull cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0 +docker pull alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0 Run container in prod env -docker run -d --name network-resurrector-frontend --restart=always -p 5009:80 cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0 +docker run -d --name network-resurrector-frontend --restart=always -p 5009:80 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0 Rename container docker rename network-resurrector-frontend