From a9b4b131a6f15f6052109c5615a400c0b2fb18bf Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Mon, 11 May 2020 02:19:55 +0300 Subject: [PATCH] docker commands --- start/image+container.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/start/image+container.txt b/start/image+container.txt index 56bf689..5918274 100644 --- a/start/image+container.txt +++ b/start/image+container.txt @@ -1,8 +1,15 @@ docker image build -t "react-redux-course:1.0.0" . +docker tag react-redux-course:1.0.3 cloud.canister.io:5000/tstanciu/react-redux-course:1.0.3 +docker login --username=tstanciu --password="--------" cloud.canister.io:5000 +docker push cloud.canister.io:5000/tstanciu/react-redux-course:1.0.3 + +docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000 +docker pull cloud.canister.io:5000/tstanciu/react-redux-course:1.0.3 + Multiple ports: docker run -p 5050:80 -p 3001:3001 -it react-redux-course:1.0.20 -docker run --restart=always -p 5002:80 -p 5003:3001 -d cloud.canister.io:5000/tstanciu/react-redux-course:1.0.1 +docker run --restart=always -p 5002:80 -p 5003:3001 -d cloud.canister.io:5000/tstanciu/react-redux-course:1.0.3 Source for scripts that start multiple processes in the same docker container: https://docs.docker.com/config/containers/multi-service_container/ \ No newline at end of file