-
Notifications
You must be signed in to change notification settings - Fork 14
/
2.sh
38 lines (29 loc) · 787 Bytes
/
2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
docker pull nginx:alpine
docker run -d -p 8080:80 --name my-nginx nginx:alpine
docker exec -it my-nginx sh
docker rm -vf my-nginx
docker run -d -p 8082:80 --name my-nginx2 nginx:1.26-alpine
docker build -t test .
docker run -d --name moshe test
docker network create my-network
docker run -d --name nginx1 --network my-network nginx:alpine
docker run -d --name nginx2 --network my-network nginx:alpine
docker network inspect my-network
version: '3'
services:
nginx55:
image: nginx:alpine
container_name: nginx55
networks:
- my-network
nginx56:
image: nginx:alpine
container_name: nginx56
networks:
- my-network
networks:
my-network:
driver: bridge
docker tag test avielb/0306repo:v0.1
docker login
docker push avielb/0306repo:v0.1