2020-06-07 14:32:46 +03:00
|
|
|
Basic ***REMOVED***
|
|
|
|
|
2020-12-25 02:31:13 +02:00
|
|
|
##############################################################################################
|
|
|
|
Azure DevOps Repository Password: ***REMOVED***
|
2020-06-07 14:32:46 +03:00
|
|
|
##############################################################################################
|
|
|
|
Docker commands:
|
|
|
|
*****************
|
|
|
|
|
|
|
|
Create image:
|
|
|
|
--from solution folder:
|
2021-08-23 10:40:49 +03:00
|
|
|
docker image build -t "chatbot-api:1.0.4" -f "Chatbot.Api/Dockerfile" .
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Run image:
|
2020-12-25 02:31:13 +02:00
|
|
|
docker run -p 5053:80 -it chatbot-api:1.0.4
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Push image to registry:
|
|
|
|
--tag image
|
2020-12-25 02:31:13 +02:00
|
|
|
docker tag chatbot-api:1.0.4 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
--login to registry
|
|
|
|
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
|
|
|
|
|
|
|
|
--push image
|
2020-12-25 02:31:13 +02:00
|
|
|
docker push cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Pull image from registry
|
|
|
|
--login to registry with readonly rights
|
|
|
|
docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000
|
|
|
|
|
|
|
|
--pull image
|
2020-12-25 02:31:13 +02:00
|
|
|
docker pull cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Run container in prod env
|
2020-12-25 02:31:13 +02:00
|
|
|
docker run --restart=always -p 5006:80 -d cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4
|
2020-06-07 14:32:46 +03:00
|
|
|
|
|
|
|
Rename container
|
2021-08-23 10:40:49 +03:00
|
|
|
docker rename <container_id> chatbot-api
|
2020-12-25 02:31:13 +02:00
|
|
|
##############################################################################################
|
|
|
|
|
|
|
|
Docker container last version: 1.0.4
|
2020-06-07 14:32:46 +03:00
|
|
|
##############################################################################################
|