network-resurrector-frontend/private/docker-notes.txt

37 lines
1.5 KiB
Plaintext

#######################################################################################################################################################
Docker commands:
*****************
Create image:
--from solution folder:
docker image build -t "network-resurrector-frontend:1.0.0" .
Run image:
docker run -p 5053:80 -it network-resurrector-frontend:1.0.0
Push image to registry:
--tag image
docker tag network-resurrector-frontend:1.0.0 cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0
--login to registry
docker login --username=tstanciu --password="***REMOVED***" cloud.canister.io:5000
--push image
docker push cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0
Pull image from registry
--login to registry with readonly rights
docker login --username=deploy+tstanciu --password=***REMOVED*** cloud.canister.io:5000
--pull image
docker pull cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0
Run container in prod env
docker run --restart=always -p 5009:80 -d cloud.canister.io:5000/tstanciu/network-resurrector:frontend-1.0.0
Rename container
docker rename <container_id> network-resurrector-frontend
#######################################################################################################################################################
Docker container last version: 1.0.0
#######################################################################################################################################################