notes update
parent
41fc2a666b
commit
fe8b26c4ab
18
Notes.txt
18
Notes.txt
|
@ -1,37 +1,41 @@
|
||||||
Basic ***REMOVED***
|
Basic ***REMOVED***
|
||||||
|
|
||||||
|
##############################################################################################
|
||||||
|
Azure DevOps Repository Password: ***REMOVED***
|
||||||
##############################################################################################
|
##############################################################################################
|
||||||
Docker commands:
|
Docker commands:
|
||||||
*****************
|
*****************
|
||||||
|
|
||||||
Create image:
|
Create image:
|
||||||
--from solution folder:
|
--from solution folder:
|
||||||
docker image build -t "chatbot-api:1.0.0" -f "Chatbot.Api\Dockerfile" .
|
docker image build -t "chatbot-api:1.0.4" -f "Chatbot.Api/Dockerfile" .docker
|
||||||
|
|
||||||
Run image:
|
Run image:
|
||||||
docker run -p 5053:80 -it chatbot-api:1.0.0
|
docker run -p 5053:80 -it chatbot-api:1.0.4
|
||||||
|
|
||||||
Push image to registry:
|
Push image to registry:
|
||||||
--tag image
|
--tag image
|
||||||
docker tag chatbot-api:1.0.0 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.0
|
docker tag chatbot-api:1.0.4 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
||||||
|
|
||||||
--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/chatbot:api-1.0.0
|
docker push cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
||||||
|
|
||||||
Pull image from registry
|
Pull image from registry
|
||||||
--login to registry with readonly rights
|
--login to registry with readonly rights
|
||||||
docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000
|
docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000
|
||||||
|
|
||||||
--pull image
|
--pull image
|
||||||
docker pull cloud.canister.io:5000/tstanciu/chatbot:api-1.0.0
|
docker pull cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
||||||
|
|
||||||
Run container in prod env
|
Run container in prod env
|
||||||
docker run --restart=always -p 5006:80 -d cloud.canister.io:5000/tstanciu/chatbot:api-1.0.0
|
docker run --restart=always -p 5006:80 -d cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
||||||
|
|
||||||
Rename container
|
Rename container
|
||||||
docker rename <containet_id> chatbot-api
|
docker rename <containet_id> chatbot-api
|
||||||
##############################################################################################
|
##############################################################################################
|
||||||
|
|
||||||
|
Docker container last version: 1.0.4
|
||||||
|
##############################################################################################
|
Loading…
Reference in New Issue