notes update

master
Tudor Stanciu 2020-12-26 00:56:46 +02:00
parent abc563346c
commit 8ae22956e5
1 changed files with 6 additions and 6 deletions

View File

@ -24,30 +24,30 @@ Docker commands:
Create image: Create image:
--from solution folder: --from solution folder:
docker image build -t "identity-server-api:1.0.0" -f "IdentityServer.Api/Dockerfile" . docker image build -t "identity-server-api:1.0.1" -f "IdentityServer.Api/Dockerfile" .
Run image: Run image:
docker run -p 5053:80 -it identity-server-api:1.0.0 docker run -p 5053:80 -it identity-server-api:1.0.1
Push image to registry: Push image to registry:
--tag image --tag image
docker tag identity-server-api:1.0.0 cloud.canister.io:5000/tstanciu/identity-server:api-1.0.0 docker tag identity-server-api:1.0.1 cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
--login to registry --login to registry
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000 docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
--push image --push image
docker push cloud.canister.io:5000/tstanciu/identity-server:api-1.0.0 docker push cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
Pull image from registry Pull image from registry
--login to registry with readonly rights --login to registry with readonly rights
docker login --username=***REMOVED*** --password=***REMOVED*** cloud.canister.io:5000 docker login --username=***REMOVED*** --password=***REMOVED*** cloud.canister.io:5000
--pull image --pull image
docker pull cloud.canister.io:5000/tstanciu/identity-server:api-1.0.0 docker pull cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
Run container in prod env Run container in prod env
docker run --restart=always -p 5007:80 -d cloud.canister.io:5000/tstanciu/identity-server:api-1.0.0 docker run --restart=always -p 5007:80 -d cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
Rename container Rename container
docker rename <container_id> identity-server-api docker rename <container_id> identity-server-api