notes update
parent
abc563346c
commit
8ae22956e5
12
Notes.txt
12
Notes.txt
|
@ -24,30 +24,30 @@ Docker commands:
|
|||
|
||||
Create image:
|
||||
--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:
|
||||
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:
|
||||
--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
|
||||
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
|
||||
|
||||
--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
|
||||
--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/identity-server:api-1.0.0
|
||||
docker pull cloud.canister.io:5000/tstanciu/identity-server:api-1.0.1
|
||||
|
||||
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
|
||||
docker rename <container_id> identity-server-api
|
||||
|
|
Loading…
Reference in New Issue