From 8d02114553ac6fb50b3f94f88a1d2262ca53051f Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 23 Aug 2021 11:14:06 +0300 Subject: [PATCH] notes --- Notes.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Notes.txt b/Notes.txt index 5ebe94e..fff0cb5 100644 --- a/Notes.txt +++ b/Notes.txt @@ -30,11 +30,17 @@ docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister. --pull image docker pull cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5 -Run container in prod env -docker run --restart=always -p 5006:80 -d cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5 +Stop old container +docker stop chatbot-api && docker rm chatbot-api -Rename container -docker rename chatbot-api +Run container in prod env +docker run -d --name chatbot-api --restart=always -p 5006:80 cloud.canister.io:5000/tstanciu/chatbot:api-1.0.5 + +Remove old image +docker rmi cloud.canister.io:5000/tstanciu/chatbot:api-1.0.4 + +Logs +docker logs chatbot-api ############################################################################################## Docker container last version: 1.0.5