forked from docker-archive/classicswarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.sh
executable file
·59 lines (44 loc) · 1008 Bytes
/
script.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
# clean up cluster
docker rm -f `docker ps -aq`
# step1
docker info
docker run -d -P --name redis redis
docker ps
docker port redis
docker inspect redis
docker logs redis
docker rm -f redis
# step2
docker run -d -m 10g redis
docker run -d -m 1g redis
docker ps
docker run -d -m 1g redis
docker ps
id=`docker run -d -m 1g redis`
docker ps
docker run -d -m 2g redis
docker ps
docker rm -f $id
docker run -d -m 2g redis
# clean up cluster
docker rm -f `docker ps -aq`
# step3
docker run -d -p 80:80 nginx
docker run -d -p 80:80 nginx
id=`docker run -d -p 80:80 nginx`
docker ps
docker rm -f $id
docker run -d -p 80:80 nginx
# clean up cluster
docker rm -f `docker ps -aq`
docker run -d -e "constraint:operatingsystem==fedora*" redis
docker ps
docker run -d -e constraint:storagedriver==devicemapper redis
docker ps
docker run -d -e constraint:storagedriver==aufs redis
docker ps
docker run -d -e constraint:node==fedora-1 redis
docker ps
# clean up cluster
docker rm -f `docker ps -aq`