-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands
37 lines (29 loc) · 1.25 KB
/
commands
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
docker image build -t python:sensor1 /home/godkira/ds_project/Sensor1
docker run -it --name sensor1 python:sensor1 --sout heartbeat --log
docker image build -t python:sensor2 /home/godkira/ds_project/Sensor2
docker run -it --name sensor2 python:sensor2 --sout heartbeat --log
docker image build -t python:receiver1 /home/godkira/ds_project/Receiver1
docker run -it --name receiver1 python:receiver1 --sout streams --log
docker image build -t python:receiver2 /home/godkira/ds_project/Receiver2
docker run -it --name receiver2 python:receiver2 --sout streams --log
docker run -d --name primary --net mynetwork pyserver primary --log
docker run -d --name backup --net mynetwork pyserver backup --log
docker image build -t python:monitor /home/godkira/ds_project/Monitor
docker run -it --name monitor python:monitor --sout --log
docker start -i monitor
docker rm sensor1
docker rm sensor2
docker rm receiver1
docker rm receiver2
docker rm monitor
docker ps
docker ps -a
docker rm $(docker ps -a -q)
docker images --filter "dangling=true"
docker rmi <image_name>
docker run -it <image_name>
docker attach <container_id_or_name>
docker run -it --name my_container <image_name>
docker run -d ubuntu
docker run -d --name my_container ubuntu
docker attach <container_id_or_name>