2020-12-27 00:05:21 +02:00
|
|
|
#######################################################################################################################################################
|
|
|
|
Docker commands:
|
|
|
|
*****************
|
|
|
|
|
|
|
|
Create image:
|
|
|
|
--from solution folder:
|
|
|
|
docker image build -t "network-resurrector-frontend:1.0.0" .
|
2021-08-15 03:29:15 +03:00
|
|
|
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t "tstanciu/sta-registry:network-resurrector-frontend-1.0.0-arm32v7" --push .
|
2020-12-27 00:05:21 +02:00
|
|
|
|
|
|
|
Run image:
|
|
|
|
docker run -p 5053:80 -it network-resurrector-frontend:1.0.0
|
|
|
|
|
|
|
|
Push image to registry:
|
|
|
|
--tag image
|
2021-04-25 00:39:36 +03:00
|
|
|
docker tag network-resurrector-frontend:1.0.0 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0
|
2020-12-27 00:05:21 +02:00
|
|
|
|
|
|
|
--login to registry
|
2022-11-22 19:39:58 +02:00
|
|
|
docker login --username=admin --password="***********" alpine-nexus:8500
|
2020-12-27 00:05:21 +02:00
|
|
|
|
|
|
|
--push image
|
2021-04-25 00:39:36 +03:00
|
|
|
docker push alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0
|
2020-12-27 00:05:21 +02:00
|
|
|
|
|
|
|
Pull image from registry
|
2021-04-25 00:39:36 +03:00
|
|
|
--login to registry
|
2020-12-27 00:05:21 +02:00
|
|
|
|
|
|
|
--pull image
|
2021-04-25 00:39:36 +03:00
|
|
|
docker pull alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0
|
2020-12-27 00:05:21 +02:00
|
|
|
|
|
|
|
Run container in prod env
|
2021-04-25 00:39:36 +03:00
|
|
|
docker run -d --name network-resurrector-frontend --restart=always -p 5009:80 alpine-nexus:8500/network-resurrector/network-resurrector-frontend:1.0.0
|
2020-12-27 00:05:21 +02:00
|
|
|
|
|
|
|
Rename container
|
|
|
|
docker rename <container_id> network-resurrector-frontend
|
|
|
|
#######################################################################################################################################################
|
|
|
|
|
|
|
|
Docker container last version: 1.0.0
|
|
|
|
#######################################################################################################################################################
|