You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10328 lines
364 KiB
10328 lines
364 KiB
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Stopping hybrid_worker_2 ...
|
|
Stopping hybrid_worker_1 ...
|
|
Stopping hybrid_master_1 ...
|
|
Stopping hybrid_registry_1 ...
|
|
[1A[2K
|
|
Stopping hybrid_registry_1 ... [32mdone[0m
|
|
[1B[2A[2K
|
|
Stopping hybrid_master_1 ... [32mdone[0m
|
|
[2B[3A[2K
|
|
Stopping hybrid_worker_1 ... [32mdone[0m
|
|
[3B[4A[2K
|
|
Stopping hybrid_worker_2 ... [32mdone[0m
|
|
[4BRemoving hybrid_worker_2 ...
|
|
Removing hybrid_worker_1 ...
|
|
Removing hybrid_master_1 ...
|
|
Removing hybrid_registry_1 ...
|
|
[4A[2K
|
|
Removing hybrid_worker_2 ... [32mdone[0m
|
|
[4B[3A[2K
|
|
Removing hybrid_worker_1 ... [32mdone[0m
|
|
[3B[2A[2K
|
|
Removing hybrid_master_1 ... [32mdone[0m
|
|
[2B[1A[2K
|
|
Removing hybrid_registry_1 ... [32mdone[0m
|
|
[1BRemoving network hybrid_default
|
|
Removing network hybrid_net
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 120.8kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 70384b2d4af6
|
|
Step 2/23 : USER root
|
|
---> Running in a1cf6b76fed1
|
|
Removing intermediate container a1cf6b76fed1
|
|
---> ea0fd1c8b815
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in aea2fcb7d3fe
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 11s (1920 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container aea2fcb7d3fe
|
|
---> d12f34d3492a
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 393e9a28185f
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 393e9a28185f
|
|
---> 824e6b0020a9
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 20455f9ebd58
|
|
Removing intermediate container 20455f9ebd58
|
|
---> 47a50d96a4a2
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 288e662077ca
|
|
Removing intermediate container 288e662077ca
|
|
---> 831f3bcd7135
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in ef11dd38728c
|
|
Removing intermediate container ef11dd38728c
|
|
---> 60de4b7eba5e
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 729000a0cac4
|
|
Removing intermediate container 729000a0cac4
|
|
---> 1300f1bcfb73
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 80e797066e35
|
|
Removing intermediate container 80e797066e35
|
|
---> 530b3baa80ec
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 727e8a27d0a1
|
|
Removing intermediate container 727e8a27d0a1
|
|
---> 23ab3e322755
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in b20747d01f62
|
|
Removing intermediate container b20747d01f62
|
|
---> 2bb0c1290336
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 835857a00c12
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 1302c2236f30
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> e23416619031
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in ab0146476458
|
|
Removing intermediate container ab0146476458
|
|
---> fd6be2d910de
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> cab33768b2d2
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in ff715b3ff94b
|
|
Removing intermediate container ff715b3ff94b
|
|
---> dc80e3b031ac
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in b7c42dcfdf29
|
|
Removing intermediate container b7c42dcfdf29
|
|
---> 6bf8181ab8f7
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in e30efadeb21c
|
|
Removing intermediate container e30efadeb21c
|
|
---> 206da1c5ca8d
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> a733148274fb
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 3cebe8bb2720
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 3cebe8bb2720
|
|
---> 4033a702c320
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> c25f33bfd1ad
|
|
Step 23/23 : USER docker
|
|
---> Running in 95019ccd0408
|
|
Removing intermediate container 95019ccd0408
|
|
---> b95bdcc6a005
|
|
Successfully built b95bdcc6a005
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
c4edd713fdda: Preparing
|
|
6c530e7c3926: Preparing
|
|
3d2d3386a70e: Preparing
|
|
b532f0f492e7: Preparing
|
|
2a4193f5907c: Preparing
|
|
8903953ae721: Preparing
|
|
3b37a0001157: Preparing
|
|
e58676256d8f: Preparing
|
|
571db8efbf6a: Preparing
|
|
1f33a2476f56: Preparing
|
|
bfa1218b455b: Preparing
|
|
800b7d91866a: Preparing
|
|
7c3ea482fb56: Preparing
|
|
0162adb86062: Preparing
|
|
5f9fd8ed821f: Preparing
|
|
8903953ae721: Waiting
|
|
1c61adcbeb23: Preparing
|
|
a6cb528e1ebe: Preparing
|
|
d94f7adb39a3: Preparing
|
|
3b37a0001157: Waiting
|
|
57ba9a4977fb: Preparing
|
|
e58676256d8f: Waiting
|
|
571db8efbf6a: Waiting
|
|
800b7d91866a: Waiting
|
|
1f33a2476f56: Waiting
|
|
7c3ea482fb56: Waiting
|
|
bfa1218b455b: Waiting
|
|
5f9fd8ed821f: Waiting
|
|
0162adb86062: Waiting
|
|
1c61adcbeb23: Waiting
|
|
d94f7adb39a3: Waiting
|
|
a6cb528e1ebe: Waiting
|
|
034e73641e8b: Preparing
|
|
8ec8b98532d3: Preparing
|
|
c8e1b2fe6d26: Preparing
|
|
cfb38b3ee53e: Preparing
|
|
5deb7b2fcf5d: Preparing
|
|
d50c462c286e: Preparing
|
|
d5ec02ec8214: Preparing
|
|
5a2945e67f3f: Preparing
|
|
57ba9a4977fb: Waiting
|
|
b5e08dbbc921: Preparing
|
|
5b91efdd8c45: Preparing
|
|
dadc2ef3f824: Preparing
|
|
f3b593cb1fd0: Preparing
|
|
39bbd8bb8dd1: Preparing
|
|
56841fe6512d: Preparing
|
|
d49a94160bf3: Preparing
|
|
2336f7ae8b62: Preparing
|
|
a295325b36ec: Preparing
|
|
c011480782c2: Preparing
|
|
51f00ee8ab59: Preparing
|
|
e44268dc8185: Preparing
|
|
cbb26583b3cc: Preparing
|
|
800be4aa816f: Preparing
|
|
2c0c8c833842: Preparing
|
|
9fda50e6d8b1: Preparing
|
|
fae9f776f4fa: Preparing
|
|
4984fd4e6d72: Preparing
|
|
58987213bdbf: Preparing
|
|
1b6ab3a9dfec: Preparing
|
|
c68e6ea3b7fe: Preparing
|
|
b39821707bd6: Preparing
|
|
0fda9b08d2d8: Preparing
|
|
ed58d5705415: Preparing
|
|
13c4529982c7: Preparing
|
|
034e73641e8b: Waiting
|
|
36b3b89ceac3: Preparing
|
|
b5f20e52dc40: Preparing
|
|
8ec8b98532d3: Waiting
|
|
fd4854e4f271: Preparing
|
|
d1a537fe046f: Preparing
|
|
5a2945e67f3f: Waiting
|
|
c8e1b2fe6d26: Waiting
|
|
42595e5b2d18: Preparing
|
|
e90a2a23f36a: Preparing
|
|
10993f921866: Preparing
|
|
eff07beaf535: Preparing
|
|
cfb38b3ee53e: Waiting
|
|
b5e08dbbc921: Waiting
|
|
5deb7b2fcf5d: Waiting
|
|
39bbd8bb8dd1: Waiting
|
|
d50c462c286e: Waiting
|
|
56841fe6512d: Waiting
|
|
d5ec02ec8214: Waiting
|
|
5b91efdd8c45: Waiting
|
|
d49a94160bf3: Waiting
|
|
800be4aa816f: Waiting
|
|
2336f7ae8b62: Waiting
|
|
2c0c8c833842: Waiting
|
|
dadc2ef3f824: Waiting
|
|
a295325b36ec: Waiting
|
|
9fda50e6d8b1: Waiting
|
|
c011480782c2: Waiting
|
|
fae9f776f4fa: Waiting
|
|
f3b593cb1fd0: Waiting
|
|
51f00ee8ab59: Waiting
|
|
4984fd4e6d72: Waiting
|
|
e44268dc8185: Waiting
|
|
cbb26583b3cc: Waiting
|
|
58987213bdbf: Waiting
|
|
b5f20e52dc40: Waiting
|
|
42595e5b2d18: Waiting
|
|
fd4854e4f271: Waiting
|
|
e90a2a23f36a: Waiting
|
|
1b6ab3a9dfec: Waiting
|
|
d1a537fe046f: Waiting
|
|
10993f921866: Waiting
|
|
c68e6ea3b7fe: Waiting
|
|
b39821707bd6: Waiting
|
|
ed58d5705415: Waiting
|
|
0fda9b08d2d8: Waiting
|
|
36b3b89ceac3: Waiting
|
|
13c4529982c7: Waiting
|
|
853bf36194df: Preparing
|
|
8693bd43b07f: Preparing
|
|
7f7065660180: Preparing
|
|
649d62c7f477: Preparing
|
|
35a92721aecf: Preparing
|
|
f30ce606277a: Preparing
|
|
a4415bacaabf: Preparing
|
|
677822e0c63a: Preparing
|
|
0a817b103a73: Preparing
|
|
dfd37fbe9da4: Preparing
|
|
34ae3e0cd3a3: Preparing
|
|
d7204b16b2f3: Preparing
|
|
fe6d8881187d: Preparing
|
|
eff07beaf535: Waiting
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
853bf36194df: Waiting
|
|
f30ce606277a: Waiting
|
|
a4415bacaabf: Waiting
|
|
8693bd43b07f: Waiting
|
|
677822e0c63a: Waiting
|
|
0a817b103a73: Waiting
|
|
7f7065660180: Waiting
|
|
dfd37fbe9da4: Waiting
|
|
34ae3e0cd3a3: Waiting
|
|
649d62c7f477: Waiting
|
|
d7204b16b2f3: Waiting
|
|
35a92721aecf: Waiting
|
|
fe6d8881187d: Waiting
|
|
b43408d5f11b: Waiting
|
|
23135df75b44: Waiting
|
|
6c530e7c3926: Pushed
|
|
b532f0f492e7: Pushed
|
|
2a4193f5907c: Pushed
|
|
3d2d3386a70e: Pushed
|
|
8903953ae721: Pushed
|
|
3b37a0001157: Pushed
|
|
e58676256d8f: Pushed
|
|
571db8efbf6a: Pushed
|
|
c4edd713fdda: Pushed
|
|
1f33a2476f56: Pushed
|
|
800b7d91866a: Pushed
|
|
bfa1218b455b: Pushed
|
|
7c3ea482fb56: Pushed
|
|
5f9fd8ed821f: Pushed
|
|
a6cb528e1ebe: Pushed
|
|
1c61adcbeb23: Pushed
|
|
d94f7adb39a3: Pushed
|
|
57ba9a4977fb: Pushed
|
|
034e73641e8b: Pushed
|
|
8ec8b98532d3: Pushed
|
|
c8e1b2fe6d26: Pushed
|
|
cfb38b3ee53e: Pushed
|
|
5deb7b2fcf5d: Pushed
|
|
d5ec02ec8214: Pushed
|
|
d50c462c286e: Pushed
|
|
5a2945e67f3f: Pushed
|
|
dadc2ef3f824: Pushed
|
|
5b91efdd8c45: Pushed
|
|
f3b593cb1fd0: Pushed
|
|
56841fe6512d: Pushed
|
|
39bbd8bb8dd1: Pushed
|
|
2336f7ae8b62: Pushed
|
|
d49a94160bf3: Pushed
|
|
a295325b36ec: Pushed
|
|
c011480782c2: Pushed
|
|
51f00ee8ab59: Pushed
|
|
e44268dc8185: Pushed
|
|
cbb26583b3cc: Pushed
|
|
800be4aa816f: Pushed
|
|
fae9f776f4fa: Pushed
|
|
9fda50e6d8b1: Pushed
|
|
4984fd4e6d72: Pushed
|
|
58987213bdbf: Pushed
|
|
c68e6ea3b7fe: Pushed
|
|
1b6ab3a9dfec: Pushed
|
|
b39821707bd6: Pushed
|
|
0fda9b08d2d8: Pushed
|
|
ed58d5705415: Pushed
|
|
13c4529982c7: Pushed
|
|
36b3b89ceac3: Pushed
|
|
b5f20e52dc40: Pushed
|
|
fd4854e4f271: Pushed
|
|
42595e5b2d18: Pushed
|
|
e90a2a23f36a: Pushed
|
|
10993f921866: Pushed
|
|
0162adb86062: Pushed
|
|
b5e08dbbc921: Pushed
|
|
eff07beaf535: Pushed
|
|
853bf36194df: Pushed
|
|
8693bd43b07f: Pushed
|
|
7f7065660180: Pushed
|
|
649d62c7f477: Pushed
|
|
f30ce606277a: Pushed
|
|
35a92721aecf: Pushed
|
|
a4415bacaabf: Pushed
|
|
677822e0c63a: Pushed
|
|
0a817b103a73: Pushed
|
|
dfd37fbe9da4: Pushed
|
|
34ae3e0cd3a3: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
2c0c8c833842: Pushed
|
|
d1a537fe046f: Pushed
|
|
b43408d5f11b: Pushed
|
|
d7204b16b2f3: Pushed
|
|
latest: digest: sha256:730cd6b476082220c901d309911df0fcca3508e2ed5927523161a5ef9b9f6213 size: 15889
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Stopping hybrid_worker_2 ...
|
|
Stopping hybrid_worker_1 ...
|
|
Stopping hybrid_master_1 ...
|
|
Stopping hybrid_registry_1 ...
|
|
[1A[2K
|
|
Stopping hybrid_registry_1 ... [32mdone[0m
|
|
[1B[4A[2K
|
|
Stopping hybrid_worker_2 ... [32mdone[0m
|
|
[4B[3A[2K
|
|
Stopping hybrid_worker_1 ... [32mdone[0m
|
|
[3B[2A[2K
|
|
Stopping hybrid_master_1 ... [32mdone[0m
|
|
[2BRemoving hybrid_worker_2 ...
|
|
Removing hybrid_worker_1 ...
|
|
Removing hybrid_master_1 ...
|
|
Removing hybrid_registry_1 ...
|
|
[2A[2K
|
|
Removing hybrid_master_1 ... [32mdone[0m
|
|
[2B[1A[2K
|
|
Removing hybrid_registry_1 ... [32mdone[0m
|
|
[1B[4A[2K
|
|
Removing hybrid_worker_2 ... [32mdone[0m
|
|
[4B[3A[2K
|
|
Removing hybrid_worker_1 ... [32mdone[0m
|
|
[3BRemoving network hybrid_default
|
|
Removing network hybrid_net
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 123.4kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> b95bdcc6a005
|
|
Step 2/23 : USER root
|
|
---> Running in e1f0a3a1c056
|
|
Removing intermediate container e1f0a3a1c056
|
|
---> 95f0fdb3f5c3
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in ee8658441061
|
|
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:3 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 12s (1801 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container ee8658441061
|
|
---> 7412f4ebf334
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 3720e6568bb4
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 3720e6568bb4
|
|
---> eed99a4819f5
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 75ec83c924ff
|
|
Removing intermediate container 75ec83c924ff
|
|
---> e91e3355e51e
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in e8c84c2894b2
|
|
Removing intermediate container e8c84c2894b2
|
|
---> bd43fd7a74ab
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in aef1928738f8
|
|
Removing intermediate container aef1928738f8
|
|
---> ba3e699e522b
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in f220a2b3853f
|
|
Removing intermediate container f220a2b3853f
|
|
---> 6c4cb5949538
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in ca391f259bee
|
|
Removing intermediate container ca391f259bee
|
|
---> c64afb9fa458
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 1cbb43f60517
|
|
Removing intermediate container 1cbb43f60517
|
|
---> 1083a5344a10
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in d4e78e5d8ded
|
|
Removing intermediate container d4e78e5d8ded
|
|
---> b6e9c2feb6be
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 175692be9fc7
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 517d700eecb2
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> d5a19c678912
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in d1f620296166
|
|
Removing intermediate container d1f620296166
|
|
---> fd7526309f8e
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> a972269832ac
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in fbe8ee39daa5
|
|
Removing intermediate container fbe8ee39daa5
|
|
---> f272e66d5b6f
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 5dfe201670f4
|
|
Removing intermediate container 5dfe201670f4
|
|
---> 1bcd5f61c463
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in ba5f39660231
|
|
Removing intermediate container ba5f39660231
|
|
---> 553d265236aa
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> ef79ff973aa1
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 8eaa50a7a922
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 8eaa50a7a922
|
|
---> 020b86709eec
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 732461d8cd23
|
|
Step 23/23 : USER docker
|
|
---> Running in 87eed2aa29bc
|
|
Removing intermediate container 87eed2aa29bc
|
|
---> b7cfe42a2c66
|
|
Successfully built b7cfe42a2c66
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
4c0b961089d2: Preparing
|
|
e78326fb3374: Preparing
|
|
52143bff71c2: Preparing
|
|
fcf3ace531df: Preparing
|
|
3cd6833e18df: Preparing
|
|
1095879b32f5: Preparing
|
|
7d957980cf5e: Preparing
|
|
9a034126ca6d: Preparing
|
|
332c41fb3bbd: Preparing
|
|
8d4a361d8ea6: Preparing
|
|
24675bad6f82: Preparing
|
|
cd7434d16f25: Preparing
|
|
bbd80b0c1ab4: Preparing
|
|
f7baf09f9a1f: Preparing
|
|
c4edd713fdda: Preparing
|
|
6c530e7c3926: Preparing
|
|
3d2d3386a70e: Preparing
|
|
b532f0f492e7: Preparing
|
|
2a4193f5907c: Preparing
|
|
1095879b32f5: Waiting
|
|
8903953ae721: Preparing
|
|
3b37a0001157: Preparing
|
|
7d957980cf5e: Waiting
|
|
e58676256d8f: Preparing
|
|
571db8efbf6a: Preparing
|
|
1f33a2476f56: Preparing
|
|
9a034126ca6d: Waiting
|
|
bfa1218b455b: Preparing
|
|
800b7d91866a: Preparing
|
|
332c41fb3bbd: Waiting
|
|
7c3ea482fb56: Preparing
|
|
0162adb86062: Preparing
|
|
8d4a361d8ea6: Waiting
|
|
5f9fd8ed821f: Preparing
|
|
1c61adcbeb23: Preparing
|
|
24675bad6f82: Waiting
|
|
a6cb528e1ebe: Preparing
|
|
d94f7adb39a3: Preparing
|
|
cd7434d16f25: Waiting
|
|
57ba9a4977fb: Preparing
|
|
034e73641e8b: Preparing
|
|
bbd80b0c1ab4: Waiting
|
|
8ec8b98532d3: Preparing
|
|
c8e1b2fe6d26: Preparing
|
|
f7baf09f9a1f: Waiting
|
|
cfb38b3ee53e: Preparing
|
|
5deb7b2fcf5d: Preparing
|
|
c4edd713fdda: Waiting
|
|
d50c462c286e: Preparing
|
|
d5ec02ec8214: Preparing
|
|
6c530e7c3926: Waiting
|
|
5a2945e67f3f: Preparing
|
|
b5e08dbbc921: Preparing
|
|
5b91efdd8c45: Preparing
|
|
dadc2ef3f824: Preparing
|
|
f3b593cb1fd0: Preparing
|
|
3d2d3386a70e: Waiting
|
|
39bbd8bb8dd1: Preparing
|
|
56841fe6512d: Preparing
|
|
d49a94160bf3: Preparing
|
|
b532f0f492e7: Waiting
|
|
2336f7ae8b62: Preparing
|
|
a295325b36ec: Preparing
|
|
c011480782c2: Preparing
|
|
2a4193f5907c: Waiting
|
|
51f00ee8ab59: Preparing
|
|
e44268dc8185: Preparing
|
|
cbb26583b3cc: Preparing
|
|
8903953ae721: Waiting
|
|
800be4aa816f: Preparing
|
|
2c0c8c833842: Preparing
|
|
9fda50e6d8b1: Preparing
|
|
3b37a0001157: Waiting
|
|
fae9f776f4fa: Preparing
|
|
4984fd4e6d72: Preparing
|
|
58987213bdbf: Preparing
|
|
e58676256d8f: Waiting
|
|
1b6ab3a9dfec: Preparing
|
|
c68e6ea3b7fe: Preparing
|
|
b39821707bd6: Preparing
|
|
0fda9b08d2d8: Preparing
|
|
571db8efbf6a: Waiting
|
|
ed58d5705415: Preparing
|
|
13c4529982c7: Preparing
|
|
36b3b89ceac3: Preparing
|
|
1f33a2476f56: Waiting
|
|
bfa1218b455b: Waiting
|
|
b5f20e52dc40: Preparing
|
|
fd4854e4f271: Preparing
|
|
800b7d91866a: Waiting
|
|
d1a537fe046f: Preparing
|
|
42595e5b2d18: Preparing
|
|
e90a2a23f36a: Preparing
|
|
7c3ea482fb56: Waiting
|
|
10993f921866: Preparing
|
|
eff07beaf535: Preparing
|
|
853bf36194df: Preparing
|
|
8693bd43b07f: Preparing
|
|
0162adb86062: Waiting
|
|
7f7065660180: Preparing
|
|
649d62c7f477: Preparing
|
|
35a92721aecf: Preparing
|
|
f30ce606277a: Preparing
|
|
a4415bacaabf: Preparing
|
|
677822e0c63a: Preparing
|
|
0a817b103a73: Preparing
|
|
dfd37fbe9da4: Preparing
|
|
34ae3e0cd3a3: Preparing
|
|
d7204b16b2f3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
5f9fd8ed821f: Waiting
|
|
1c61adcbeb23: Waiting
|
|
a6cb528e1ebe: Waiting
|
|
d94f7adb39a3: Waiting
|
|
57ba9a4977fb: Waiting
|
|
034e73641e8b: Waiting
|
|
8ec8b98532d3: Waiting
|
|
c8e1b2fe6d26: Waiting
|
|
cfb38b3ee53e: Waiting
|
|
5deb7b2fcf5d: Waiting
|
|
d50c462c286e: Waiting
|
|
d5ec02ec8214: Waiting
|
|
5a2945e67f3f: Waiting
|
|
b5e08dbbc921: Waiting
|
|
5b91efdd8c45: Waiting
|
|
dadc2ef3f824: Waiting
|
|
f3b593cb1fd0: Waiting
|
|
39bbd8bb8dd1: Waiting
|
|
56841fe6512d: Waiting
|
|
d49a94160bf3: Waiting
|
|
2336f7ae8b62: Waiting
|
|
a295325b36ec: Waiting
|
|
c011480782c2: Waiting
|
|
51f00ee8ab59: Waiting
|
|
e44268dc8185: Waiting
|
|
cbb26583b3cc: Waiting
|
|
800be4aa816f: Waiting
|
|
0fda9b08d2d8: Waiting
|
|
ed58d5705415: Waiting
|
|
2c0c8c833842: Waiting
|
|
13c4529982c7: Waiting
|
|
36b3b89ceac3: Waiting
|
|
b5f20e52dc40: Waiting
|
|
9fda50e6d8b1: Waiting
|
|
42595e5b2d18: Waiting
|
|
fae9f776f4fa: Waiting
|
|
fd4854e4f271: Waiting
|
|
4984fd4e6d72: Waiting
|
|
d1a537fe046f: Waiting
|
|
58987213bdbf: Waiting
|
|
e90a2a23f36a: Waiting
|
|
dfd37fbe9da4: Waiting
|
|
1b6ab3a9dfec: Waiting
|
|
c68e6ea3b7fe: Waiting
|
|
34ae3e0cd3a3: Waiting
|
|
10993f921866: Waiting
|
|
d7204b16b2f3: Waiting
|
|
eff07beaf535: Waiting
|
|
fe6d8881187d: Waiting
|
|
b39821707bd6: Waiting
|
|
23135df75b44: Waiting
|
|
853bf36194df: Waiting
|
|
f30ce606277a: Waiting
|
|
8693bd43b07f: Waiting
|
|
a4415bacaabf: Waiting
|
|
7f7065660180: Waiting
|
|
b43408d5f11b: Waiting
|
|
677822e0c63a: Waiting
|
|
0a817b103a73: Waiting
|
|
649d62c7f477: Waiting
|
|
35a92721aecf: Waiting
|
|
4c0b961089d2: Pushed
|
|
52143bff71c2: Pushed
|
|
fcf3ace531df: Pushed
|
|
3cd6833e18df: Pushed
|
|
e78326fb3374: Pushed
|
|
1095879b32f5: Pushed
|
|
7d957980cf5e: Pushed
|
|
332c41fb3bbd: Pushed
|
|
8d4a361d8ea6: Pushed
|
|
9a034126ca6d: Pushed
|
|
cd7434d16f25: Pushed
|
|
6c530e7c3926: Pushed
|
|
24675bad6f82: Pushed
|
|
bbd80b0c1ab4: Pushed
|
|
3d2d3386a70e: Pushed
|
|
c4edd713fdda: Pushed
|
|
b532f0f492e7: Pushed
|
|
2a4193f5907c: Pushed
|
|
8903953ae721: Pushed
|
|
3b37a0001157: Pushed
|
|
e58676256d8f: Pushed
|
|
1f33a2476f56: Pushed
|
|
571db8efbf6a: Pushed
|
|
bfa1218b455b: Pushed
|
|
800b7d91866a: Pushed
|
|
7c3ea482fb56: Pushed
|
|
5f9fd8ed821f: Pushed
|
|
1c61adcbeb23: Pushed
|
|
a6cb528e1ebe: Pushed
|
|
d94f7adb39a3: Pushed
|
|
57ba9a4977fb: Pushed
|
|
034e73641e8b: Pushed
|
|
8ec8b98532d3: Pushed
|
|
c8e1b2fe6d26: Pushed
|
|
5deb7b2fcf5d: Pushed
|
|
cfb38b3ee53e: Pushed
|
|
d50c462c286e: Pushed
|
|
d5ec02ec8214: Pushed
|
|
5a2945e67f3f: Pushed
|
|
5b91efdd8c45: Pushed
|
|
dadc2ef3f824: Pushed
|
|
f3b593cb1fd0: Pushed
|
|
39bbd8bb8dd1: Pushed
|
|
56841fe6512d: Pushed
|
|
d49a94160bf3: Pushed
|
|
2336f7ae8b62: Pushed
|
|
a295325b36ec: Pushed
|
|
c011480782c2: Pushed
|
|
51f00ee8ab59: Pushed
|
|
e44268dc8185: Pushed
|
|
cbb26583b3cc: Pushed
|
|
800be4aa816f: Pushed
|
|
9fda50e6d8b1: Pushed
|
|
fae9f776f4fa: Pushed
|
|
4984fd4e6d72: Pushed
|
|
58987213bdbf: Pushed
|
|
1b6ab3a9dfec: Pushed
|
|
c68e6ea3b7fe: Pushed
|
|
b39821707bd6: Pushed
|
|
0162adb86062: Pushed
|
|
0fda9b08d2d8: Pushed
|
|
ed58d5705415: Pushed
|
|
13c4529982c7: Pushed
|
|
36b3b89ceac3: Pushed
|
|
f7baf09f9a1f: Pushed
|
|
b5f20e52dc40: Pushed
|
|
fd4854e4f271: Pushed
|
|
42595e5b2d18: Pushed
|
|
e90a2a23f36a: Pushed
|
|
10993f921866: Pushed
|
|
eff07beaf535: Pushed
|
|
b5e08dbbc921: Pushed
|
|
853bf36194df: Pushed
|
|
8693bd43b07f: Pushed
|
|
7f7065660180: Pushed
|
|
649d62c7f477: Pushed
|
|
35a92721aecf: Pushed
|
|
f30ce606277a: Pushed
|
|
a4415bacaabf: Pushed
|
|
677822e0c63a: Pushed
|
|
dfd37fbe9da4: Pushed
|
|
0a817b103a73: Pushed
|
|
34ae3e0cd3a3: Pushed
|
|
fe6d8881187d: Pushed
|
|
2c0c8c833842: Pushed
|
|
23135df75b44: Pushed
|
|
d1a537fe046f: Pushed
|
|
b43408d5f11b: Pushed
|
|
d7204b16b2f3: Pushed
|
|
latest: digest: sha256:c05d08c5a13cc72aad418c4c6cebc038498104847e4283ffc27b72674c4bfbc5 size: 18795
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Stopping hybrid_worker_2 ...
|
|
Stopping hybrid_worker_1 ...
|
|
Stopping hybrid_master_1 ...
|
|
Stopping hybrid_registry_1 ...
|
|
[1A[2K
|
|
Stopping hybrid_registry_1 ... [32mdone[0m
|
|
[1B[3A[2K
|
|
Stopping hybrid_worker_1 ... [32mdone[0m
|
|
[3B[4A[2K
|
|
Stopping hybrid_worker_2 ... [32mdone[0m
|
|
[4B[2A[2K
|
|
Stopping hybrid_master_1 ... [32mdone[0m
|
|
[2BRemoving hybrid_worker_2 ...
|
|
Removing hybrid_worker_1 ...
|
|
Removing hybrid_master_1 ...
|
|
Removing hybrid_registry_1 ...
|
|
[4A[2K
|
|
Removing hybrid_worker_2 ... [32mdone[0m
|
|
[4B[1A[2K
|
|
Removing hybrid_registry_1 ... [32mdone[0m
|
|
[1B[3A[2K
|
|
Removing hybrid_worker_1 ... [32mdone[0m
|
|
[3B[2A[2K
|
|
Removing hybrid_master_1 ... [32mdone[0m
|
|
[2BRemoving network hybrid_default
|
|
Removing network hybrid_net
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 126kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> b7cfe42a2c66
|
|
Step 2/23 : USER root
|
|
---> Running in bee296832bc8
|
|
Removing intermediate container bee296832bc8
|
|
---> b0af29f7a204
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 2fb9677e8094
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 12s (1851 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 2fb9677e8094
|
|
---> 1d239ed688bc
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in e884f3ca8acc
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
[0m[91m
|
|
[0mRemoving intermediate container e884f3ca8acc
|
|
---> 2bfff5dbcaaa
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 5ad5bf69b63d
|
|
Removing intermediate container 5ad5bf69b63d
|
|
---> b157e72f8aa0
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 7d4e145c00c6
|
|
Removing intermediate container 7d4e145c00c6
|
|
---> c4ef8945278d
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 5a826f89966b
|
|
Removing intermediate container 5a826f89966b
|
|
---> 8418c87e7be9
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 8ba8ce07b6af
|
|
Removing intermediate container 8ba8ce07b6af
|
|
---> 6e43520f0bce
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in b87cd375ea6f
|
|
Removing intermediate container b87cd375ea6f
|
|
---> 1a30eb9b1a18
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 9c4a59dff7dc
|
|
Removing intermediate container 9c4a59dff7dc
|
|
---> 6c072cc4e8e8
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in da300bdb7522
|
|
Removing intermediate container da300bdb7522
|
|
---> 581f22b972e4
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 0d5f6fbe8c8e
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 184d504c962e
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> d25435b3d953
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in a1f460e80734
|
|
Removing intermediate container a1f460e80734
|
|
---> 70968588c354
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> bd7f37f6480d
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 2197a4267195
|
|
Removing intermediate container 2197a4267195
|
|
---> 2f83c4c48eca
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in e9aea29b6e37
|
|
Removing intermediate container e9aea29b6e37
|
|
---> d5eca3e7d581
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 5b5272699fb2
|
|
Removing intermediate container 5b5272699fb2
|
|
---> 5972e3374303
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 7a085816b581
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 0f7bdff1f155
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 0f7bdff1f155
|
|
---> 27ebd7b47511
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> d0e07746d072
|
|
Step 23/23 : USER docker
|
|
---> Running in b004f7150de9
|
|
Removing intermediate container b004f7150de9
|
|
---> 8757ddf0dbd9
|
|
Successfully built 8757ddf0dbd9
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
2810eda465bf: Preparing
|
|
c7629729ef19: Preparing
|
|
77bf15c98641: Preparing
|
|
c02be571aad5: Preparing
|
|
7a4b179f5bde: Preparing
|
|
9dacbef1054a: Preparing
|
|
84ca98c60391: Preparing
|
|
25f554eb4aad: Preparing
|
|
79722152bde9: Preparing
|
|
e0815d6826d0: Preparing
|
|
1e34585c1211: Preparing
|
|
7ebc1036efcc: Preparing
|
|
e694d09f5902: Preparing
|
|
660a9415fbdc: Preparing
|
|
4c0b961089d2: Preparing
|
|
e78326fb3374: Preparing
|
|
52143bff71c2: Preparing
|
|
fcf3ace531df: Preparing
|
|
3cd6833e18df: Preparing
|
|
1095879b32f5: Preparing
|
|
7d957980cf5e: Preparing
|
|
9a034126ca6d: Preparing
|
|
332c41fb3bbd: Preparing
|
|
8d4a361d8ea6: Preparing
|
|
24675bad6f82: Preparing
|
|
cd7434d16f25: Preparing
|
|
bbd80b0c1ab4: Preparing
|
|
f7baf09f9a1f: Preparing
|
|
c4edd713fdda: Preparing
|
|
6c530e7c3926: Preparing
|
|
3d2d3386a70e: Preparing
|
|
b532f0f492e7: Preparing
|
|
2a4193f5907c: Preparing
|
|
8903953ae721: Preparing
|
|
3b37a0001157: Preparing
|
|
e58676256d8f: Preparing
|
|
571db8efbf6a: Preparing
|
|
1f33a2476f56: Preparing
|
|
bfa1218b455b: Preparing
|
|
800b7d91866a: Preparing
|
|
7c3ea482fb56: Preparing
|
|
0162adb86062: Preparing
|
|
5f9fd8ed821f: Preparing
|
|
1c61adcbeb23: Preparing
|
|
a6cb528e1ebe: Preparing
|
|
d94f7adb39a3: Preparing
|
|
57ba9a4977fb: Preparing
|
|
034e73641e8b: Preparing
|
|
8ec8b98532d3: Preparing
|
|
c8e1b2fe6d26: Preparing
|
|
cfb38b3ee53e: Preparing
|
|
5deb7b2fcf5d: Preparing
|
|
d50c462c286e: Preparing
|
|
d5ec02ec8214: Preparing
|
|
5a2945e67f3f: Preparing
|
|
b5e08dbbc921: Preparing
|
|
5b91efdd8c45: Preparing
|
|
dadc2ef3f824: Preparing
|
|
f3b593cb1fd0: Preparing
|
|
39bbd8bb8dd1: Preparing
|
|
56841fe6512d: Preparing
|
|
d49a94160bf3: Preparing
|
|
2336f7ae8b62: Preparing
|
|
a295325b36ec: Preparing
|
|
c011480782c2: Preparing
|
|
51f00ee8ab59: Preparing
|
|
e44268dc8185: Preparing
|
|
cbb26583b3cc: Preparing
|
|
800be4aa816f: Preparing
|
|
2c0c8c833842: Preparing
|
|
9fda50e6d8b1: Preparing
|
|
fae9f776f4fa: Preparing
|
|
4984fd4e6d72: Preparing
|
|
58987213bdbf: Preparing
|
|
1b6ab3a9dfec: Preparing
|
|
c68e6ea3b7fe: Preparing
|
|
b39821707bd6: Preparing
|
|
0fda9b08d2d8: Preparing
|
|
ed58d5705415: Preparing
|
|
13c4529982c7: Preparing
|
|
36b3b89ceac3: Preparing
|
|
b5f20e52dc40: Preparing
|
|
fd4854e4f271: Preparing
|
|
d1a537fe046f: Preparing
|
|
42595e5b2d18: Preparing
|
|
e90a2a23f36a: Preparing
|
|
10993f921866: Preparing
|
|
eff07beaf535: Preparing
|
|
853bf36194df: Preparing
|
|
8693bd43b07f: Preparing
|
|
7f7065660180: Preparing
|
|
649d62c7f477: Preparing
|
|
35a92721aecf: Preparing
|
|
f30ce606277a: Preparing
|
|
a4415bacaabf: Preparing
|
|
9dacbef1054a: Waiting
|
|
84ca98c60391: Waiting
|
|
677822e0c63a: Preparing
|
|
0a817b103a73: Preparing
|
|
dfd37fbe9da4: Preparing
|
|
25f554eb4aad: Waiting
|
|
34ae3e0cd3a3: Preparing
|
|
d7204b16b2f3: Preparing
|
|
fe6d8881187d: Preparing
|
|
79722152bde9: Waiting
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
e0815d6826d0: Waiting
|
|
2c0c8c833842: Waiting
|
|
1e34585c1211: Waiting
|
|
9fda50e6d8b1: Waiting
|
|
fae9f776f4fa: Waiting
|
|
7ebc1036efcc: Waiting
|
|
4984fd4e6d72: Waiting
|
|
e694d09f5902: Waiting
|
|
58987213bdbf: Waiting
|
|
660a9415fbdc: Waiting
|
|
1b6ab3a9dfec: Waiting
|
|
4c0b961089d2: Waiting
|
|
c68e6ea3b7fe: Waiting
|
|
e78326fb3374: Waiting
|
|
b39821707bd6: Waiting
|
|
52143bff71c2: Waiting
|
|
0fda9b08d2d8: Waiting
|
|
fcf3ace531df: Waiting
|
|
ed58d5705415: Waiting
|
|
3cd6833e18df: Waiting
|
|
13c4529982c7: Waiting
|
|
1095879b32f5: Waiting
|
|
36b3b89ceac3: Waiting
|
|
7d957980cf5e: Waiting
|
|
b5f20e52dc40: Waiting
|
|
9a034126ca6d: Waiting
|
|
fd4854e4f271: Waiting
|
|
f7baf09f9a1f: Waiting
|
|
d1a537fe046f: Waiting
|
|
c4edd713fdda: Waiting
|
|
42595e5b2d18: Waiting
|
|
6c530e7c3926: Waiting
|
|
e90a2a23f36a: Waiting
|
|
10993f921866: Waiting
|
|
3d2d3386a70e: Waiting
|
|
eff07beaf535: Waiting
|
|
b532f0f492e7: Waiting
|
|
853bf36194df: Waiting
|
|
2a4193f5907c: Waiting
|
|
8693bd43b07f: Waiting
|
|
7f7065660180: Waiting
|
|
649d62c7f477: Waiting
|
|
35a92721aecf: Waiting
|
|
332c41fb3bbd: Waiting
|
|
8d4a361d8ea6: Waiting
|
|
24675bad6f82: Waiting
|
|
cd7434d16f25: Waiting
|
|
f30ce606277a: Waiting
|
|
bbd80b0c1ab4: Waiting
|
|
8903953ae721: Waiting
|
|
a4415bacaabf: Waiting
|
|
bfa1218b455b: Waiting
|
|
677822e0c63a: Waiting
|
|
3b37a0001157: Waiting
|
|
800b7d91866a: Waiting
|
|
0a817b103a73: Waiting
|
|
7c3ea482fb56: Waiting
|
|
e58676256d8f: Waiting
|
|
dfd37fbe9da4: Waiting
|
|
800be4aa816f: Waiting
|
|
0162adb86062: Waiting
|
|
34ae3e0cd3a3: Waiting
|
|
5f9fd8ed821f: Waiting
|
|
d7204b16b2f3: Waiting
|
|
1c61adcbeb23: Waiting
|
|
a6cb528e1ebe: Waiting
|
|
23135df75b44: Waiting
|
|
571db8efbf6a: Waiting
|
|
1f33a2476f56: Waiting
|
|
d94f7adb39a3: Waiting
|
|
b43408d5f11b: Waiting
|
|
57ba9a4977fb: Waiting
|
|
034e73641e8b: Waiting
|
|
d50c462c286e: Waiting
|
|
8ec8b98532d3: Waiting
|
|
d5ec02ec8214: Waiting
|
|
c8e1b2fe6d26: Waiting
|
|
5a2945e67f3f: Waiting
|
|
cfb38b3ee53e: Waiting
|
|
5deb7b2fcf5d: Waiting
|
|
5b91efdd8c45: Waiting
|
|
dadc2ef3f824: Waiting
|
|
f3b593cb1fd0: Waiting
|
|
56841fe6512d: Waiting
|
|
39bbd8bb8dd1: Waiting
|
|
d49a94160bf3: Waiting
|
|
2336f7ae8b62: Waiting
|
|
a295325b36ec: Waiting
|
|
c011480782c2: Waiting
|
|
51f00ee8ab59: Waiting
|
|
e44268dc8185: Waiting
|
|
cbb26583b3cc: Waiting
|
|
fe6d8881187d: Waiting
|
|
b5e08dbbc921: Waiting
|
|
2810eda465bf: Pushed
|
|
77bf15c98641: Pushed
|
|
7a4b179f5bde: Pushed
|
|
c02be571aad5: Pushed
|
|
c7629729ef19: Pushed
|
|
25f554eb4aad: Pushed
|
|
84ca98c60391: Pushed
|
|
9dacbef1054a: Pushed
|
|
79722152bde9: Pushed
|
|
e0815d6826d0: Pushed
|
|
1e34585c1211: Pushed
|
|
e694d09f5902: Pushed
|
|
7ebc1036efcc: Pushed
|
|
4c0b961089d2: Pushed
|
|
e78326fb3374: Pushed
|
|
fcf3ace531df: Pushed
|
|
52143bff71c2: Pushed
|
|
3cd6833e18df: Pushed
|
|
1095879b32f5: Pushed
|
|
7d957980cf5e: Pushed
|
|
9a034126ca6d: Pushed
|
|
332c41fb3bbd: Pushed
|
|
8d4a361d8ea6: Pushed
|
|
cd7434d16f25: Pushed
|
|
24675bad6f82: Pushed
|
|
6c530e7c3926: Pushed
|
|
bbd80b0c1ab4: Pushed
|
|
3d2d3386a70e: Pushed
|
|
b532f0f492e7: Pushed
|
|
2a4193f5907c: Pushed
|
|
c4edd713fdda: Pushed
|
|
3b37a0001157: Pushed
|
|
8903953ae721: Pushed
|
|
e58676256d8f: Pushed
|
|
571db8efbf6a: Pushed
|
|
1f33a2476f56: Pushed
|
|
bfa1218b455b: Pushed
|
|
800b7d91866a: Pushed
|
|
7c3ea482fb56: Pushed
|
|
5f9fd8ed821f: Pushed
|
|
1c61adcbeb23: Pushed
|
|
a6cb528e1ebe: Pushed
|
|
d94f7adb39a3: Pushed
|
|
57ba9a4977fb: Pushed
|
|
034e73641e8b: Pushed
|
|
8ec8b98532d3: Pushed
|
|
c8e1b2fe6d26: Pushed
|
|
cfb38b3ee53e: Pushed
|
|
5deb7b2fcf5d: Pushed
|
|
d50c462c286e: Pushed
|
|
d5ec02ec8214: Pushed
|
|
5a2945e67f3f: Pushed
|
|
5b91efdd8c45: Pushed
|
|
dadc2ef3f824: Pushed
|
|
f3b593cb1fd0: Pushed
|
|
39bbd8bb8dd1: Pushed
|
|
56841fe6512d: Pushed
|
|
d49a94160bf3: Pushed
|
|
660a9415fbdc: Pushed
|
|
2336f7ae8b62: Pushed
|
|
a295325b36ec: Pushed
|
|
c011480782c2: Pushed
|
|
51f00ee8ab59: Pushed
|
|
e44268dc8185: Pushed
|
|
cbb26583b3cc: Pushed
|
|
800be4aa816f: Pushed
|
|
0162adb86062: Pushed
|
|
f7baf09f9a1f: Pushed
|
|
9fda50e6d8b1: Pushed
|
|
fae9f776f4fa: Pushed
|
|
4984fd4e6d72: Pushed
|
|
1b6ab3a9dfec: Pushed
|
|
58987213bdbf: Pushed
|
|
c68e6ea3b7fe: Pushed
|
|
0fda9b08d2d8: Pushed
|
|
b39821707bd6: Pushed
|
|
ed58d5705415: Pushed
|
|
13c4529982c7: Pushed
|
|
36b3b89ceac3: Pushed
|
|
b5f20e52dc40: Pushed
|
|
fd4854e4f271: Pushed
|
|
42595e5b2d18: Pushed
|
|
e90a2a23f36a: Pushed
|
|
10993f921866: Pushed
|
|
eff07beaf535: Pushed
|
|
853bf36194df: Pushed
|
|
8693bd43b07f: Pushed
|
|
7f7065660180: Pushed
|
|
649d62c7f477: Pushed
|
|
35a92721aecf: Pushed
|
|
f30ce606277a: Pushed
|
|
a4415bacaabf: Pushed
|
|
677822e0c63a: Pushed
|
|
0a817b103a73: Pushed
|
|
dfd37fbe9da4: Pushed
|
|
34ae3e0cd3a3: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
b5e08dbbc921: Pushed
|
|
2c0c8c833842: Pushed
|
|
d1a537fe046f: Pushed
|
|
b43408d5f11b: Pushed
|
|
d7204b16b2f3: Pushed
|
|
latest: digest: sha256:5b43f759614dc36b7d4bc2b72c83af11901bceafce46eee2905dc119f0fc2d62 size: 21701
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Stopping hybrid_worker_2 ...
|
|
Stopping hybrid_worker_1 ...
|
|
Stopping hybrid_master_1 ...
|
|
Stopping hybrid_registry_1 ...
|
|
[1A[2K
|
|
Stopping hybrid_registry_1 ... [32mdone[0m
|
|
[1B[4A[2K
|
|
Stopping hybrid_worker_2 ... [32mdone[0m
|
|
[4B[3A[2K
|
|
Stopping hybrid_worker_1 ... [32mdone[0m
|
|
[3B[2A[2K
|
|
Stopping hybrid_master_1 ... [32mdone[0m
|
|
[2BRemoving hybrid_worker_2 ...
|
|
Removing hybrid_worker_1 ...
|
|
Removing hybrid_master_1 ...
|
|
Removing hybrid_registry_1 ...
|
|
[4A[2K
|
|
Removing hybrid_worker_2 ... [32mdone[0m
|
|
[4B[2A[2K
|
|
Removing hybrid_master_1 ... [32mdone[0m
|
|
[2B[1A[2K
|
|
Removing hybrid_registry_1 ... [32mdone[0m
|
|
[1B[3A[2K
|
|
Removing hybrid_worker_1 ... [32mdone[0m
|
|
[3BRemoving network hybrid_default
|
|
Removing network hybrid_net
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 128.5kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 8757ddf0dbd9
|
|
Step 2/23 : USER root
|
|
---> Running in 0a60dcb7a210
|
|
Removing intermediate container 0a60dcb7a210
|
|
---> f1238a040b67
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 384481137fe5
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:12 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Fetched 21.5 MB in 13s (1623 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 384481137fe5
|
|
---> 8e4e79b10f36
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 0c6ede28ac68
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 0c6ede28ac68
|
|
---> bec41fd262c5
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 6a650ead72b0
|
|
Removing intermediate container 6a650ead72b0
|
|
---> 5cd1eb746552
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in d442e295a8fa
|
|
Removing intermediate container d442e295a8fa
|
|
---> 549c89f0d16b
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 83b03e6ba542
|
|
Removing intermediate container 83b03e6ba542
|
|
---> b3fc14acf124
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 72ddff024f63
|
|
Removing intermediate container 72ddff024f63
|
|
---> 27b58f03df33
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 749914fbdc27
|
|
Removing intermediate container 749914fbdc27
|
|
---> 406a851dc6cb
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 1e93ccac59ec
|
|
Removing intermediate container 1e93ccac59ec
|
|
---> da8d9aa04438
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 69aec300cead
|
|
Removing intermediate container 69aec300cead
|
|
---> 54b485cbb837
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 162396f0cf19
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 4bbdc49d8ed4
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> b2fec3ef6265
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 7f450e70b5cc
|
|
Removing intermediate container 7f450e70b5cc
|
|
---> f6fa587d65cf
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 5da2e2d6046f
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 63892556815c
|
|
Removing intermediate container 63892556815c
|
|
---> 6aa03b4d66f6
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 431bb991a797
|
|
Removing intermediate container 431bb991a797
|
|
---> 5eafbd3f6b58
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 81075febc775
|
|
Removing intermediate container 81075febc775
|
|
---> 327ba6f5a4dd
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> ccc677ed8ded
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in ab83d0fab27c
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container ab83d0fab27c
|
|
---> 7742f0c13794
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 53dcf98a94a4
|
|
Step 23/23 : USER docker
|
|
---> Running in a0b1cf8c0219
|
|
Removing intermediate container a0b1cf8c0219
|
|
---> 7e8d128ee6f8
|
|
Successfully built 7e8d128ee6f8
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
6588f3d01291: Preparing
|
|
74511f3f4356: Preparing
|
|
cfa79f7f4afa: Preparing
|
|
87a3e044ad19: Preparing
|
|
21b94f9e78d0: Preparing
|
|
4aa472bf1554: Preparing
|
|
ec0336f6b389: Preparing
|
|
7883c9936324: Preparing
|
|
bb98643e79b2: Preparing
|
|
f871775a538b: Preparing
|
|
beafdbc789e0: Preparing
|
|
9d9d2a01619d: Preparing
|
|
e2d46f6b6d0d: Preparing
|
|
a0559555fbae: Preparing
|
|
2810eda465bf: Preparing
|
|
c7629729ef19: Preparing
|
|
4aa472bf1554: Waiting
|
|
77bf15c98641: Preparing
|
|
c02be571aad5: Preparing
|
|
7a4b179f5bde: Preparing
|
|
ec0336f6b389: Waiting
|
|
9dacbef1054a: Preparing
|
|
84ca98c60391: Preparing
|
|
25f554eb4aad: Preparing
|
|
7883c9936324: Waiting
|
|
79722152bde9: Preparing
|
|
bb98643e79b2: Waiting
|
|
e0815d6826d0: Preparing
|
|
1e34585c1211: Preparing
|
|
7ebc1036efcc: Preparing
|
|
e694d09f5902: Preparing
|
|
f871775a538b: Waiting
|
|
660a9415fbdc: Preparing
|
|
4c0b961089d2: Preparing
|
|
e78326fb3374: Preparing
|
|
beafdbc789e0: Waiting
|
|
52143bff71c2: Preparing
|
|
fcf3ace531df: Preparing
|
|
3cd6833e18df: Preparing
|
|
1095879b32f5: Preparing
|
|
9d9d2a01619d: Waiting
|
|
7d957980cf5e: Preparing
|
|
9a034126ca6d: Preparing
|
|
332c41fb3bbd: Preparing
|
|
8d4a361d8ea6: Preparing
|
|
24675bad6f82: Preparing
|
|
cd7434d16f25: Preparing
|
|
bbd80b0c1ab4: Preparing
|
|
f7baf09f9a1f: Preparing
|
|
c4edd713fdda: Preparing
|
|
6c530e7c3926: Preparing
|
|
3d2d3386a70e: Preparing
|
|
b532f0f492e7: Preparing
|
|
2a4193f5907c: Preparing
|
|
8903953ae721: Preparing
|
|
3b37a0001157: Preparing
|
|
e58676256d8f: Preparing
|
|
571db8efbf6a: Preparing
|
|
1f33a2476f56: Preparing
|
|
bfa1218b455b: Preparing
|
|
800b7d91866a: Preparing
|
|
7c3ea482fb56: Preparing
|
|
0162adb86062: Preparing
|
|
5f9fd8ed821f: Preparing
|
|
1c61adcbeb23: Preparing
|
|
a6cb528e1ebe: Preparing
|
|
d94f7adb39a3: Preparing
|
|
57ba9a4977fb: Preparing
|
|
034e73641e8b: Preparing
|
|
8ec8b98532d3: Preparing
|
|
c8e1b2fe6d26: Preparing
|
|
cfb38b3ee53e: Preparing
|
|
5deb7b2fcf5d: Preparing
|
|
d50c462c286e: Preparing
|
|
d5ec02ec8214: Preparing
|
|
5a2945e67f3f: Preparing
|
|
b5e08dbbc921: Preparing
|
|
5b91efdd8c45: Preparing
|
|
dadc2ef3f824: Preparing
|
|
f3b593cb1fd0: Preparing
|
|
39bbd8bb8dd1: Preparing
|
|
56841fe6512d: Preparing
|
|
d49a94160bf3: Preparing
|
|
2336f7ae8b62: Preparing
|
|
a295325b36ec: Preparing
|
|
c011480782c2: Preparing
|
|
51f00ee8ab59: Preparing
|
|
e44268dc8185: Preparing
|
|
cbb26583b3cc: Preparing
|
|
800be4aa816f: Preparing
|
|
2c0c8c833842: Preparing
|
|
9fda50e6d8b1: Preparing
|
|
fae9f776f4fa: Preparing
|
|
4984fd4e6d72: Preparing
|
|
58987213bdbf: Preparing
|
|
1b6ab3a9dfec: Preparing
|
|
c68e6ea3b7fe: Preparing
|
|
b39821707bd6: Preparing
|
|
0fda9b08d2d8: Preparing
|
|
ed58d5705415: Preparing
|
|
13c4529982c7: Preparing
|
|
36b3b89ceac3: Preparing
|
|
b5f20e52dc40: Preparing
|
|
fd4854e4f271: Preparing
|
|
d1a537fe046f: Preparing
|
|
42595e5b2d18: Preparing
|
|
e90a2a23f36a: Preparing
|
|
10993f921866: Preparing
|
|
eff07beaf535: Preparing
|
|
853bf36194df: Preparing
|
|
8693bd43b07f: Preparing
|
|
7f7065660180: Preparing
|
|
649d62c7f477: Preparing
|
|
35a92721aecf: Preparing
|
|
f30ce606277a: Preparing
|
|
a4415bacaabf: Preparing
|
|
677822e0c63a: Preparing
|
|
0a817b103a73: Preparing
|
|
dfd37fbe9da4: Preparing
|
|
34ae3e0cd3a3: Preparing
|
|
d7204b16b2f3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
a295325b36ec: Waiting
|
|
c011480782c2: Waiting
|
|
e2d46f6b6d0d: Waiting
|
|
51f00ee8ab59: Waiting
|
|
a0559555fbae: Waiting
|
|
e44268dc8185: Waiting
|
|
2810eda465bf: Waiting
|
|
cbb26583b3cc: Waiting
|
|
c7629729ef19: Waiting
|
|
800be4aa816f: Waiting
|
|
2c0c8c833842: Waiting
|
|
77bf15c98641: Waiting
|
|
c02be571aad5: Waiting
|
|
9fda50e6d8b1: Waiting
|
|
fae9f776f4fa: Waiting
|
|
7a4b179f5bde: Waiting
|
|
4984fd4e6d72: Waiting
|
|
9dacbef1054a: Waiting
|
|
58987213bdbf: Waiting
|
|
84ca98c60391: Waiting
|
|
1b6ab3a9dfec: Waiting
|
|
25f554eb4aad: Waiting
|
|
79722152bde9: Waiting
|
|
c68e6ea3b7fe: Waiting
|
|
b39821707bd6: Waiting
|
|
e0815d6826d0: Waiting
|
|
0fda9b08d2d8: Waiting
|
|
1e34585c1211: Waiting
|
|
ed58d5705415: Waiting
|
|
7ebc1036efcc: Waiting
|
|
13c4529982c7: Waiting
|
|
e694d09f5902: Waiting
|
|
36b3b89ceac3: Waiting
|
|
660a9415fbdc: Waiting
|
|
b5f20e52dc40: Waiting
|
|
4c0b961089d2: Waiting
|
|
fd4854e4f271: Waiting
|
|
e78326fb3374: Waiting
|
|
d1a537fe046f: Waiting
|
|
52143bff71c2: Waiting
|
|
42595e5b2d18: Waiting
|
|
fcf3ace531df: Waiting
|
|
e90a2a23f36a: Waiting
|
|
3cd6833e18df: Waiting
|
|
10993f921866: Waiting
|
|
1095879b32f5: Waiting
|
|
c4edd713fdda: Waiting
|
|
eff07beaf535: Waiting
|
|
6c530e7c3926: Waiting
|
|
853bf36194df: Waiting
|
|
7d957980cf5e: Waiting
|
|
8693bd43b07f: Waiting
|
|
9a034126ca6d: Waiting
|
|
332c41fb3bbd: Waiting
|
|
3d2d3386a70e: Waiting
|
|
7f7065660180: Waiting
|
|
b532f0f492e7: Waiting
|
|
649d62c7f477: Waiting
|
|
8d4a361d8ea6: Waiting
|
|
35a92721aecf: Waiting
|
|
24675bad6f82: Waiting
|
|
2a4193f5907c: Waiting
|
|
f30ce606277a: Waiting
|
|
8903953ae721: Waiting
|
|
cd7434d16f25: Waiting
|
|
677822e0c63a: Waiting
|
|
bbd80b0c1ab4: Waiting
|
|
3b37a0001157: Waiting
|
|
f7baf09f9a1f: Waiting
|
|
0a817b103a73: Waiting
|
|
e58676256d8f: Waiting
|
|
dfd37fbe9da4: Waiting
|
|
571db8efbf6a: Waiting
|
|
34ae3e0cd3a3: Waiting
|
|
d7204b16b2f3: Waiting
|
|
a6cb528e1ebe: Waiting
|
|
fe6d8881187d: Waiting
|
|
d94f7adb39a3: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
57ba9a4977fb: Waiting
|
|
034e73641e8b: Waiting
|
|
8ec8b98532d3: Waiting
|
|
c8e1b2fe6d26: Waiting
|
|
cfb38b3ee53e: Waiting
|
|
d5ec02ec8214: Waiting
|
|
5a2945e67f3f: Waiting
|
|
5deb7b2fcf5d: Waiting
|
|
b5e08dbbc921: Waiting
|
|
d50c462c286e: Waiting
|
|
5b91efdd8c45: Waiting
|
|
dadc2ef3f824: Waiting
|
|
56841fe6512d: Waiting
|
|
d49a94160bf3: Waiting
|
|
2336f7ae8b62: Waiting
|
|
a4415bacaabf: Waiting
|
|
1f33a2476f56: Waiting
|
|
bfa1218b455b: Waiting
|
|
800b7d91866a: Waiting
|
|
7c3ea482fb56: Waiting
|
|
0162adb86062: Waiting
|
|
5f9fd8ed821f: Waiting
|
|
1c61adcbeb23: Waiting
|
|
39bbd8bb8dd1: Waiting
|
|
f3b593cb1fd0: Waiting
|
|
cfa79f7f4afa: Pushed
|
|
6588f3d01291: Pushed
|
|
74511f3f4356: Pushed
|
|
21b94f9e78d0: Pushed
|
|
87a3e044ad19: Pushed
|
|
4aa472bf1554: Pushed
|
|
ec0336f6b389: Pushed
|
|
7883c9936324: Pushed
|
|
bb98643e79b2: Pushed
|
|
f871775a538b: Pushed
|
|
9d9d2a01619d: Pushed
|
|
beafdbc789e0: Pushed
|
|
2810eda465bf: Pushed
|
|
e2d46f6b6d0d: Pushed
|
|
c7629729ef19: Pushed
|
|
77bf15c98641: Pushed
|
|
c02be571aad5: Pushed
|
|
7a4b179f5bde: Pushed
|
|
84ca98c60391: Pushed
|
|
9dacbef1054a: Pushed
|
|
25f554eb4aad: Pushed
|
|
79722152bde9: Pushed
|
|
e0815d6826d0: Pushed
|
|
7ebc1036efcc: Pushed
|
|
1e34585c1211: Pushed
|
|
e694d09f5902: Pushed
|
|
e78326fb3374: Pushed
|
|
4c0b961089d2: Pushed
|
|
52143bff71c2: Pushed
|
|
3cd6833e18df: Pushed
|
|
fcf3ace531df: Pushed
|
|
1095879b32f5: Pushed
|
|
9a034126ca6d: Pushed
|
|
7d957980cf5e: Pushed
|
|
332c41fb3bbd: Pushed
|
|
8d4a361d8ea6: Pushed
|
|
24675bad6f82: Pushed
|
|
cd7434d16f25: Pushed
|
|
bbd80b0c1ab4: Pushed
|
|
6c530e7c3926: Pushed
|
|
c4edd713fdda: Pushed
|
|
3d2d3386a70e: Pushed
|
|
b532f0f492e7: Pushed
|
|
2a4193f5907c: Pushed
|
|
8903953ae721: Pushed
|
|
3b37a0001157: Pushed
|
|
e58676256d8f: Pushed
|
|
571db8efbf6a: Pushed
|
|
1f33a2476f56: Pushed
|
|
bfa1218b455b: Pushed
|
|
800b7d91866a: Pushed
|
|
7c3ea482fb56: Pushed
|
|
5f9fd8ed821f: Pushed
|
|
1c61adcbeb23: Pushed
|
|
a6cb528e1ebe: Pushed
|
|
d94f7adb39a3: Pushed
|
|
57ba9a4977fb: Pushed
|
|
034e73641e8b: Pushed
|
|
a0559555fbae: Pushed
|
|
8ec8b98532d3: Pushed
|
|
c8e1b2fe6d26: Pushed
|
|
cfb38b3ee53e: Pushed
|
|
5deb7b2fcf5d: Pushed
|
|
d50c462c286e: Pushed
|
|
d5ec02ec8214: Pushed
|
|
660a9415fbdc: Pushed
|
|
5a2945e67f3f: Pushed
|
|
5b91efdd8c45: Pushed
|
|
dadc2ef3f824: Pushed
|
|
f3b593cb1fd0: Pushed
|
|
39bbd8bb8dd1: Pushed
|
|
56841fe6512d: Pushed
|
|
d49a94160bf3: Pushed
|
|
2336f7ae8b62: Pushed
|
|
a295325b36ec: Pushed
|
|
c011480782c2: Pushed
|
|
51f00ee8ab59: Pushed
|
|
e44268dc8185: Pushed
|
|
cbb26583b3cc: Pushed
|
|
800be4aa816f: Pushed
|
|
9fda50e6d8b1: Pushed
|
|
fae9f776f4fa: Pushed
|
|
4984fd4e6d72: Pushed
|
|
58987213bdbf: Pushed
|
|
f7baf09f9a1f: Pushed
|
|
1b6ab3a9dfec: Pushed
|
|
c68e6ea3b7fe: Pushed
|
|
b39821707bd6: Pushed
|
|
0fda9b08d2d8: Pushed
|
|
ed58d5705415: Pushed
|
|
13c4529982c7: Pushed
|
|
36b3b89ceac3: Pushed
|
|
b5f20e52dc40: Pushed
|
|
fd4854e4f271: Pushed
|
|
42595e5b2d18: Pushed
|
|
0162adb86062: Pushed
|
|
e90a2a23f36a: Pushed
|
|
10993f921866: Pushed
|
|
eff07beaf535: Pushed
|
|
853bf36194df: Pushed
|
|
8693bd43b07f: Pushed
|
|
649d62c7f477: Pushed
|
|
7f7065660180: Pushed
|
|
35a92721aecf: Pushed
|
|
f30ce606277a: Pushed
|
|
a4415bacaabf: Pushed
|
|
677822e0c63a: Pushed
|
|
0a817b103a73: Pushed
|
|
dfd37fbe9da4: Pushed
|
|
34ae3e0cd3a3: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
b5e08dbbc921: Pushed
|
|
2c0c8c833842: Pushed
|
|
d1a537fe046f: Pushed
|
|
b43408d5f11b: Pushed
|
|
d7204b16b2f3: Pushed
|
|
latest: digest: sha256:e72d6269f5d3c5d777c7719f23fea9fc6e9c2a4a9f0d52db289d5aa2115d86c0 size: 24607
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 131.1kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 7e8d128ee6f8
|
|
Step 2/23 : USER root
|
|
---> Running in 7710e0f173e7
|
|
Removing intermediate container 7710e0f173e7
|
|
---> 60ad8a37de6b
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 44d242be8474
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 19s (1125 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 44d242be8474
|
|
---> a0a2c2974e54
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 90cd60c02448
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 90cd60c02448
|
|
---> 528a978c702c
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in b8540c353d1a
|
|
Removing intermediate container b8540c353d1a
|
|
---> f26bc8b84443
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in cac3f1776eb3
|
|
Removing intermediate container cac3f1776eb3
|
|
---> f570d26531be
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in a168a21e8897
|
|
Removing intermediate container a168a21e8897
|
|
---> 33ca12ce4fe8
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 145a4faebc2d
|
|
Removing intermediate container 145a4faebc2d
|
|
---> 3b3b892a9eaf
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 886c59f7a411
|
|
Removing intermediate container 886c59f7a411
|
|
---> dd4c649de40a
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in ab00db42373c
|
|
Removing intermediate container ab00db42373c
|
|
---> 0865eab9b84c
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in de01aa6ee4cf
|
|
Removing intermediate container de01aa6ee4cf
|
|
---> 0890bbff2a71
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 729123a3cf74
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
max depth exceeded
|
|
|
|
>>> Load Origin
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Stopping hybrid_registry_1 ...
|
|
[1A[2K
|
|
Stopping hybrid_registry_1 ... [32mdone[0m
|
|
[1BRemoving hybrid_registry_1 ...
|
|
[1A[2K
|
|
Removing hybrid_registry_1 ... [32mdone[0m
|
|
[1BRemoving network hybrid_default
|
|
Removing network hybrid_net
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 106.5kB
|
|
|
|
Step 1/23 : FROM ubuntu:18.04
|
|
18.04: Pulling from library/ubuntu
|
|
f22ccc0b8772: Pulling fs layer
|
|
3cf8fb62ba5f: Pulling fs layer
|
|
e80c964ece6a: Pulling fs layer
|
|
e80c964ece6a: Verifying Checksum
|
|
e80c964ece6a: Download complete
|
|
3cf8fb62ba5f: Verifying Checksum
|
|
3cf8fb62ba5f: Download complete
|
|
f22ccc0b8772: Download complete
|
|
f22ccc0b8772: Pull complete
|
|
3cf8fb62ba5f: Pull complete
|
|
e80c964ece6a: Pull complete
|
|
Digest: sha256:fd25e706f3dea2a5ff705dbc3353cf37f08307798f3e360a13e9385840f73fb3
|
|
Status: Downloaded newer image for ubuntu:18.04
|
|
---> 2c047404e52d
|
|
Step 2/23 : USER root
|
|
---> Running in 93bee6d92b3c
|
|
Removing intermediate container 93bee6d92b3c
|
|
---> b559dcdfab9c
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in d75ba4fd1565
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 11s (1952 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
The following additional packages will be installed:
|
|
bc bind9-host iproute2 libasn1-8-heimdal libbind9-160 libblas3 libbsd0
|
|
libcap2 libcurl4 libdns1100 libedit2 libelf1 libexpat1 libgdbm-compat4
|
|
libgdbm5 libgeoip1 libgpm2 libgssapi-krb5-2 libgssapi3-heimdal
|
|
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
|
|
libhx509-5-heimdal libicu60 libidn11 libip4tc0 libip6tc0 libiptc0 libirs160
|
|
libisc169 libisccc160 libisccfg160 libjson-c3 libk5crypto3 libkeyutils1
|
|
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common
|
|
liblinear3 liblua5.3-0 liblwres160 libmnl0 libmpdec2 libnetfilter-conntrack3
|
|
libnfnetlink0 libnghttp2-14 libpcap0.8 libperl5.26 libpsl5 libpython-stdlib
|
|
libpython2.7-minimal libpython2.7-stdlib libpython3.6 libpython3.6-minimal
|
|
libpython3.6-stdlib libreadline7 libroken18-heimdal librtmp1 libsasl2-2
|
|
libsasl2-modules-db libsqlite3-0 libssl1.0.0 libssl1.1 libwind0-heimdal
|
|
libwrap0 libxml2 libxtables12 mime-support multiarch-support openssh-client
|
|
openssh-sftp-server perl perl-modules-5.26 python-minimal python2.7
|
|
python2.7-minimal readline-common shorewall-core ucf vim-common vim-runtime
|
|
xxd
|
|
Suggested packages:
|
|
rblcheck iproute2-doc kmod gdbm-l10n geoip-bin gpm krb5-doc krb5-user
|
|
liblinear-tools liblinear-dev ndiff keychain libpam-ssh monkeysphere
|
|
ssh-askpass molly-guard rssh ufw perl-doc libterm-readline-gnu-perl
|
|
| libterm-readline-perl-perl make python-doc python-tk python2.7-doc
|
|
binutils binfmt-support readline-doc shorewall-doc apparmor ctags vim-doc
|
|
vim-scripts
|
|
Recommended packages:
|
|
libatm1 libcap2-bin ca-certificates geoip-database krb5-locales publicsuffix
|
|
libsasl2-modules file xz-utils xauth libpam-systemd ncurses-term
|
|
ssh-import-id netbase libnetfilter-cthelper0
|
|
The following NEW packages will be installed:
|
|
bc bind9-host curl dnsutils iproute2 iptables iputils-ping libasn1-8-heimdal
|
|
libbind9-160 libblas3 libbsd0 libcap2 libcurl4 libdns1100 libedit2 libelf1
|
|
libexpat1 libgdbm-compat4 libgdbm5 libgeoip1 libgpm2 libgssapi-krb5-2
|
|
libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
|
|
libheimntlm0-heimdal libhx509-5-heimdal libicu60 libidn11 libip4tc0
|
|
libip6tc0 libiptc0 libirs160 libisc169 libisccc160 libisccfg160 libjson-c3
|
|
libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0
|
|
libldap-2.4-2 libldap-common liblinear3 liblua5.3-0 liblwres160 libmnl0
|
|
libmpdec2 libnetfilter-conntrack3 libnfnetlink0 libnghttp2-14 libpcap0.8
|
|
libperl5.26 libpsl5 libpython-stdlib libpython2.7-minimal
|
|
libpython2.7-stdlib libpython3.6 libpython3.6-minimal libpython3.6-stdlib
|
|
libreadline7 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules-db
|
|
libsqlite3-0 libssl1.0.0 libssl1.1 libwind0-heimdal libwrap0 libxml2
|
|
libxtables12 mime-support multiarch-support net-tools nmap openssh-client
|
|
openssh-server openssh-sftp-server perl perl-modules-5.26 python
|
|
python-minimal python2.7 python2.7-minimal readline-common shorewall
|
|
shorewall-core sudo tcpdump ucf vim vim-common vim-runtime wget xxd
|
|
0 upgraded, 97 newly installed, 0 to remove and 4 not upgraded.
|
|
Need to get 46.9 MB of archives.
|
|
After this operation, 210 MB of additional disk space will be used.
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 multiarch-support amd64 2.27-3ubuntu1.4 [6944 B]
|
|
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnfnetlink0 amd64 1.0.1-3 [13.3 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 perl-modules-5.26 all 5.26.1-6ubuntu0.5 [2762 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgdbm5 amd64 1.14.1-6 [26.0 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgdbm-compat4 amd64 1.14.1-6 [6084 B]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libperl5.26 amd64 5.26.1-6ubuntu0.5 [3534 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 perl amd64 5.26.1-6ubuntu0.5 [201 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.17-1~18.04ubuntu1.2 [335 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.17-1~18.04ubuntu1.2 [1290 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 python-minimal amd64 2.7.15~rc1-1 [28.1 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.1 amd64 1.1.1-1ubuntu2.1~18.04.7 [1301 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 mime-support all 3.60ubuntu1 [30.1 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libexpat1 amd64 2.2.5-3ubuntu0.2 [80.5 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 readline-common all 7.0-3 [52.9 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 libreadline7 amd64 7.0-3 [124 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsqlite3-0 amd64 3.22.0-1ubuntu0.4 [499 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-stdlib amd64 2.7.17-1~18.04ubuntu1.2 [1916 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.17-1~18.04ubuntu1.2 [248 kB]
|
|
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpython-stdlib amd64 2.7.15~rc1-1 [7620 B]
|
|
Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 python amd64 2.7.15~rc1-1 [140 kB]
|
|
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libelf1 amd64 0.170-0.4ubuntu0.1 [44.8 kB]
|
|
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmnl0 amd64 1.0.4-2 [12.3 kB]
|
|
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 iproute2 amd64 4.15.0-2ubuntu1.2 [722 kB]
|
|
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcap2 amd64 1:2.25-1.2 [13.0 kB]
|
|
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libidn11 amd64 1.33-2.1ubuntu1.2 [46.6 kB]
|
|
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 iputils-ping amd64 3:20161105-1ubuntu3 [54.2 kB]
|
|
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbsd0 amd64 0.8.7-1ubuntu0.1 [41.6 kB]
|
|
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libicu60 amd64 60.2-3ubuntu3.1 [8054 kB]
|
|
Get:29 http://archive.ubuntu.com/ubuntu bionic/main amd64 libip4tc0 amd64 1.6.1-2ubuntu2 [19.6 kB]
|
|
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libjson-c3 amd64 0.12.1-1.3ubuntu0.3 [21.7 kB]
|
|
Get:31 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpdec2 amd64 2.4.2-1ubuntu1 [84.1 kB]
|
|
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-minimal amd64 3.6.9-1~18.04ubuntu1.3 [533 kB]
|
|
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-stdlib amd64 3.6.9-1~18.04ubuntu1.3 [1713 kB]
|
|
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxml2 amd64 2.9.4+dfsg1-6.1ubuntu1.3 [663 kB]
|
|
Get:35 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxtables12 amd64 1.6.1-2ubuntu2 [27.9 kB]
|
|
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 sudo amd64 1.8.21p2-3ubuntu1.3 [428 kB]
|
|
Get:37 http://archive.ubuntu.com/ubuntu bionic/main amd64 ucf all 3.0038 [50.5 kB]
|
|
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 xxd amd64 2:8.0.1453-1ubuntu1.4 [49.3 kB]
|
|
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim-common all 2:8.0.1453-1ubuntu1.4 [70.4 kB]
|
|
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libisc169 amd64 1:9.11.3+dfsg-1ubuntu1.13 [238 kB]
|
|
Get:41 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgeoip1 amd64 1.6.12-1 [71.8 kB]
|
|
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libkrb5support0 amd64 1.16-2ubuntu0.2 [30.8 kB]
|
|
Get:43 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libk5crypto3 amd64 1.16-2ubuntu0.2 [85.5 kB]
|
|
Get:44 http://archive.ubuntu.com/ubuntu bionic/main amd64 libkeyutils1 amd64 1.5.9-9.2ubuntu2 [8720 B]
|
|
Get:45 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libkrb5-3 amd64 1.16-2ubuntu0.2 [279 kB]
|
|
Get:46 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgssapi-krb5-2 amd64 1.16-2ubuntu0.2 [122 kB]
|
|
Get:47 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdns1100 amd64 1:9.11.3+dfsg-1ubuntu1.13 [966 kB]
|
|
Get:48 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libisccc160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [17.9 kB]
|
|
Get:49 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libisccfg160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [48.4 kB]
|
|
Get:50 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbind9-160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [27.6 kB]
|
|
Get:51 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblwres160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [34.7 kB]
|
|
Get:52 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 bind9-host amd64 1:9.11.3+dfsg-1ubuntu1.13 [53.5 kB]
|
|
Get:53 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libirs160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [19.1 kB]
|
|
Get:54 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dnsutils amd64 1:9.11.3+dfsg-1ubuntu1.13 [145 kB]
|
|
Get:55 http://archive.ubuntu.com/ubuntu bionic/main amd64 libip6tc0 amd64 1.6.1-2ubuntu2 [19.9 kB]
|
|
Get:56 http://archive.ubuntu.com/ubuntu bionic/main amd64 libiptc0 amd64 1.6.1-2ubuntu2 [9308 B]
|
|
Get:57 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnetfilter-conntrack3 amd64 1.0.6-2 [37.8 kB]
|
|
Get:58 http://archive.ubuntu.com/ubuntu bionic/main amd64 iptables amd64 1.6.1-2ubuntu2 [269 kB]
|
|
Get:59 http://archive.ubuntu.com/ubuntu bionic/main amd64 libedit2 amd64 3.1-20170329-1 [76.9 kB]
|
|
Get:60 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpcap0.8 amd64 1.8.1-6ubuntu1.18.04.2 [118 kB]
|
|
Get:61 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpsl5 amd64 0.19.1-5build1 [41.8 kB]
|
|
Get:62 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.0.0 amd64 1.0.2n-1ubuntu5.5 [1088 kB]
|
|
Get:63 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-client amd64 1:7.6p1-4ubuntu0.3 [614 kB]
|
|
Get:64 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tcpdump amd64 4.9.3-0ubuntu0.18.04.1 [364 kB]
|
|
Get:65 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 wget amd64 1.19.4-1ubuntu2.2 [316 kB]
|
|
Get:66 http://archive.ubuntu.com/ubuntu bionic/main amd64 bc amd64 1.07.1-2 [86.2 kB]
|
|
Get:67 http://archive.ubuntu.com/ubuntu bionic/main amd64 libroken18-heimdal amd64 7.5.0+dfsg-1 [41.3 kB]
|
|
Get:68 http://archive.ubuntu.com/ubuntu bionic/main amd64 libasn1-8-heimdal amd64 7.5.0+dfsg-1 [175 kB]
|
|
Get:69 http://archive.ubuntu.com/ubuntu bionic/main amd64 libheimbase1-heimdal amd64 7.5.0+dfsg-1 [29.3 kB]
|
|
Get:70 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhcrypto4-heimdal amd64 7.5.0+dfsg-1 [85.9 kB]
|
|
Get:71 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwind0-heimdal amd64 7.5.0+dfsg-1 [47.8 kB]
|
|
Get:72 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhx509-5-heimdal amd64 7.5.0+dfsg-1 [107 kB]
|
|
Get:73 http://archive.ubuntu.com/ubuntu bionic/main amd64 libkrb5-26-heimdal amd64 7.5.0+dfsg-1 [206 kB]
|
|
Get:74 http://archive.ubuntu.com/ubuntu bionic/main amd64 libheimntlm0-heimdal amd64 7.5.0+dfsg-1 [14.8 kB]
|
|
Get:75 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgssapi3-heimdal amd64 7.5.0+dfsg-1 [96.5 kB]
|
|
Get:76 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsasl2-modules-db amd64 2.1.27~101-g0780600+dfsg-3ubuntu2.1 [14.8 kB]
|
|
Get:77 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsasl2-2 amd64 2.1.27~101-g0780600+dfsg-3ubuntu2.1 [49.2 kB]
|
|
Get:78 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libldap-common all 2.4.45+dfsg-1ubuntu1.8 [17.0 kB]
|
|
Get:79 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libldap-2.4-2 amd64 2.4.45+dfsg-1ubuntu1.8 [155 kB]
|
|
Get:80 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnghttp2-14 amd64 1.30.0-1ubuntu1 [77.8 kB]
|
|
Get:81 http://archive.ubuntu.com/ubuntu bionic/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-1 [54.2 kB]
|
|
Get:82 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.12 [214 kB]
|
|
Get:83 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 curl amd64 7.58.0-2ubuntu3.12 [159 kB]
|
|
Get:84 http://archive.ubuntu.com/ubuntu bionic/main amd64 libblas3 amd64 3.7.1-4ubuntu1 [140 kB]
|
|
Get:85 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgpm2 amd64 1.20.7-5 [15.1 kB]
|
|
Get:86 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblinear3 amd64 2.1.0+dfsg-2 [39.3 kB]
|
|
Get:87 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblua5.3-0 amd64 5.3.3-1ubuntu0.18.04.1 [115 kB]
|
|
Get:88 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6 amd64 3.6.9-1~18.04ubuntu1.3 [1414 kB]
|
|
Get:89 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwrap0 amd64 7.6.q-27 [46.3 kB]
|
|
Get:90 http://archive.ubuntu.com/ubuntu bionic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1ubuntu1 [194 kB]
|
|
Get:91 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-sftp-server amd64 1:7.6p1-4ubuntu0.3 [45.6 kB]
|
|
Get:92 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-server amd64 1:7.6p1-4ubuntu0.3 [333 kB]
|
|
Get:93 http://archive.ubuntu.com/ubuntu bionic/universe amd64 shorewall-core all 5.1.12.2-1 [67.6 kB]
|
|
Get:94 http://archive.ubuntu.com/ubuntu bionic/universe amd64 shorewall all 5.1.12.2-1 [761 kB]
|
|
Get:95 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim-runtime all 2:8.0.1453-1ubuntu1.4 [5435 kB]
|
|
Get:96 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim amd64 2:8.0.1453-1ubuntu1.4 [1152 kB]
|
|
Get:97 http://archive.ubuntu.com/ubuntu bionic/main amd64 nmap amd64 7.60-1ubuntu5 [5174 kB]
|
|
[91mdebconf: delaying package configuration, since apt-utils is not installed
|
|
[0mFetched 46.9 MB in 23s (2038 kB/s)
|
|
Selecting previously unselected package multiarch-support.
|
|
(Reading database ...
|
|
(Reading database ... 5%
|
|
(Reading database ... 10%
|
|
(Reading database ... 15%
|
|
(Reading database ... 20%
|
|
(Reading database ... 25%
|
|
(Reading database ... 30%
|
|
(Reading database ... 35%
|
|
(Reading database ... 40%
|
|
(Reading database ... 45%
|
|
(Reading database ... 50%
|
|
(Reading database ... 55%
|
|
(Reading database ... 60%
|
|
(Reading database ... 65%
|
|
(Reading database ... 70%
|
|
(Reading database ... 75%
|
|
(Reading database ... 80%
|
|
(Reading database ... 85%
|
|
(Reading database ... 90%
|
|
(Reading database ... 95%
|
|
(Reading database ... 100%
|
|
(Reading database ... 4045 files and directories currently installed.)
|
|
Preparing to unpack .../multiarch-support_2.27-3ubuntu1.4_amd64.deb ...
|
|
Unpacking multiarch-support (2.27-3ubuntu1.4) ...
|
|
Setting up multiarch-support (2.27-3ubuntu1.4) ...
|
|
Selecting previously unselected package libnfnetlink0:amd64.
|
|
(Reading database ...
|
|
(Reading database ... 5%
|
|
(Reading database ... 10%
|
|
(Reading database ... 15%
|
|
(Reading database ... 20%
|
|
(Reading database ... 25%
|
|
(Reading database ... 30%
|
|
(Reading database ... 35%
|
|
(Reading database ... 40%
|
|
(Reading database ... 45%
|
|
(Reading database ... 50%
|
|
(Reading database ... 55%
|
|
(Reading database ... 60%
|
|
(Reading database ... 65%
|
|
(Reading database ... 70%
|
|
(Reading database ... 75%
|
|
(Reading database ... 80%
|
|
(Reading database ... 85%
|
|
(Reading database ... 90%
|
|
(Reading database ... 95%
|
|
(Reading database ... 100%
|
|
(Reading database ... 4048 files and directories currently installed.)
|
|
Preparing to unpack .../00-libnfnetlink0_1.0.1-3_amd64.deb ...
|
|
Unpacking libnfnetlink0:amd64 (1.0.1-3) ...
|
|
Selecting previously unselected package perl-modules-5.26.
|
|
Preparing to unpack .../01-perl-modules-5.26_5.26.1-6ubuntu0.5_all.deb ...
|
|
Unpacking perl-modules-5.26 (5.26.1-6ubuntu0.5) ...
|
|
Selecting previously unselected package libgdbm5:amd64.
|
|
Preparing to unpack .../02-libgdbm5_1.14.1-6_amd64.deb ...
|
|
Unpacking libgdbm5:amd64 (1.14.1-6) ...
|
|
Selecting previously unselected package libgdbm-compat4:amd64.
|
|
Preparing to unpack .../03-libgdbm-compat4_1.14.1-6_amd64.deb ...
|
|
Unpacking libgdbm-compat4:amd64 (1.14.1-6) ...
|
|
Selecting previously unselected package libperl5.26:amd64.
|
|
Preparing to unpack .../04-libperl5.26_5.26.1-6ubuntu0.5_amd64.deb ...
|
|
Unpacking libperl5.26:amd64 (5.26.1-6ubuntu0.5) ...
|
|
Selecting previously unselected package perl.
|
|
Preparing to unpack .../05-perl_5.26.1-6ubuntu0.5_amd64.deb ...
|
|
Unpacking perl (5.26.1-6ubuntu0.5) ...
|
|
Selecting previously unselected package libpython2.7-minimal:amd64.
|
|
Preparing to unpack .../06-libpython2.7-minimal_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking libpython2.7-minimal:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package python2.7-minimal.
|
|
Preparing to unpack .../07-python2.7-minimal_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking python2.7-minimal (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package python-minimal.
|
|
Preparing to unpack .../08-python-minimal_2.7.15~rc1-1_amd64.deb ...
|
|
Unpacking python-minimal (2.7.15~rc1-1) ...
|
|
Selecting previously unselected package libssl1.1:amd64.
|
|
Preparing to unpack .../09-libssl1.1_1.1.1-1ubuntu2.1~18.04.7_amd64.deb ...
|
|
Unpacking libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.7) ...
|
|
Selecting previously unselected package mime-support.
|
|
Preparing to unpack .../10-mime-support_3.60ubuntu1_all.deb ...
|
|
Unpacking mime-support (3.60ubuntu1) ...
|
|
Selecting previously unselected package libexpat1:amd64.
|
|
Preparing to unpack .../11-libexpat1_2.2.5-3ubuntu0.2_amd64.deb ...
|
|
Unpacking libexpat1:amd64 (2.2.5-3ubuntu0.2) ...
|
|
Selecting previously unselected package readline-common.
|
|
Preparing to unpack .../12-readline-common_7.0-3_all.deb ...
|
|
Unpacking readline-common (7.0-3) ...
|
|
Selecting previously unselected package libreadline7:amd64.
|
|
Preparing to unpack .../13-libreadline7_7.0-3_amd64.deb ...
|
|
Unpacking libreadline7:amd64 (7.0-3) ...
|
|
Selecting previously unselected package libsqlite3-0:amd64.
|
|
Preparing to unpack .../14-libsqlite3-0_3.22.0-1ubuntu0.4_amd64.deb ...
|
|
Unpacking libsqlite3-0:amd64 (3.22.0-1ubuntu0.4) ...
|
|
Selecting previously unselected package libpython2.7-stdlib:amd64.
|
|
Preparing to unpack .../15-libpython2.7-stdlib_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package python2.7.
|
|
Preparing to unpack .../16-python2.7_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking python2.7 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package libpython-stdlib:amd64.
|
|
Preparing to unpack .../17-libpython-stdlib_2.7.15~rc1-1_amd64.deb ...
|
|
Unpacking libpython-stdlib:amd64 (2.7.15~rc1-1) ...
|
|
Setting up libpython2.7-minimal:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up python2.7-minimal (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up python-minimal (2.7.15~rc1-1) ...
|
|
Selecting previously unselected package python.
|
|
(Reading database ...
|
|
(Reading database ... 5%
|
|
(Reading database ... 10%
|
|
(Reading database ... 15%
|
|
(Reading database ... 20%
|
|
(Reading database ... 25%
|
|
(Reading database ... 30%
|
|
(Reading database ... 35%
|
|
(Reading database ... 40%
|
|
(Reading database ... 45%
|
|
(Reading database ... 50%
|
|
(Reading database ... 55%
|
|
(Reading database ... 60%
|
|
(Reading database ... 65%
|
|
(Reading database ... 70%
|
|
(Reading database ... 75%
|
|
(Reading database ... 80%
|
|
(Reading database ... 85%
|
|
(Reading database ... 90%
|
|
(Reading database ... 95%
|
|
(Reading database ... 100%
|
|
(Reading database ... 6786 files and directories currently installed.)
|
|
Preparing to unpack .../00-python_2.7.15~rc1-1_amd64.deb ...
|
|
Unpacking python (2.7.15~rc1-1) ...
|
|
Selecting previously unselected package libelf1:amd64.
|
|
Preparing to unpack .../01-libelf1_0.170-0.4ubuntu0.1_amd64.deb ...
|
|
Unpacking libelf1:amd64 (0.170-0.4ubuntu0.1) ...
|
|
Selecting previously unselected package libmnl0:amd64.
|
|
Preparing to unpack .../02-libmnl0_1.0.4-2_amd64.deb ...
|
|
Unpacking libmnl0:amd64 (1.0.4-2) ...
|
|
Selecting previously unselected package iproute2.
|
|
Preparing to unpack .../03-iproute2_4.15.0-2ubuntu1.2_amd64.deb ...
|
|
Unpacking iproute2 (4.15.0-2ubuntu1.2) ...
|
|
Selecting previously unselected package libcap2:amd64.
|
|
Preparing to unpack .../04-libcap2_1%3a2.25-1.2_amd64.deb ...
|
|
Unpacking libcap2:amd64 (1:2.25-1.2) ...
|
|
Selecting previously unselected package libidn11:amd64.
|
|
Preparing to unpack .../05-libidn11_1.33-2.1ubuntu1.2_amd64.deb ...
|
|
Unpacking libidn11:amd64 (1.33-2.1ubuntu1.2) ...
|
|
Selecting previously unselected package iputils-ping.
|
|
Preparing to unpack .../06-iputils-ping_3%3a20161105-1ubuntu3_amd64.deb ...
|
|
Unpacking iputils-ping (3:20161105-1ubuntu3) ...
|
|
Selecting previously unselected package libbsd0:amd64.
|
|
Preparing to unpack .../07-libbsd0_0.8.7-1ubuntu0.1_amd64.deb ...
|
|
Unpacking libbsd0:amd64 (0.8.7-1ubuntu0.1) ...
|
|
Selecting previously unselected package libicu60:amd64.
|
|
Preparing to unpack .../08-libicu60_60.2-3ubuntu3.1_amd64.deb ...
|
|
Unpacking libicu60:amd64 (60.2-3ubuntu3.1) ...
|
|
Selecting previously unselected package libip4tc0:amd64.
|
|
Preparing to unpack .../09-libip4tc0_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libip4tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libjson-c3:amd64.
|
|
Preparing to unpack .../10-libjson-c3_0.12.1-1.3ubuntu0.3_amd64.deb ...
|
|
Unpacking libjson-c3:amd64 (0.12.1-1.3ubuntu0.3) ...
|
|
Selecting previously unselected package libmpdec2:amd64.
|
|
Preparing to unpack .../11-libmpdec2_2.4.2-1ubuntu1_amd64.deb ...
|
|
Unpacking libmpdec2:amd64 (2.4.2-1ubuntu1) ...
|
|
Selecting previously unselected package libpython3.6-minimal:amd64.
|
|
Preparing to unpack .../12-libpython3.6-minimal_3.6.9-1~18.04ubuntu1.3_amd64.deb ...
|
|
Unpacking libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Selecting previously unselected package libpython3.6-stdlib:amd64.
|
|
Preparing to unpack .../13-libpython3.6-stdlib_3.6.9-1~18.04ubuntu1.3_amd64.deb ...
|
|
Unpacking libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Selecting previously unselected package libxml2:amd64.
|
|
Preparing to unpack .../14-libxml2_2.9.4+dfsg1-6.1ubuntu1.3_amd64.deb ...
|
|
Unpacking libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
|
|
Selecting previously unselected package libxtables12:amd64.
|
|
Preparing to unpack .../15-libxtables12_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libxtables12:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package sudo.
|
|
Preparing to unpack .../16-sudo_1.8.21p2-3ubuntu1.3_amd64.deb ...
|
|
Unpacking sudo (1.8.21p2-3ubuntu1.3) ...
|
|
Selecting previously unselected package ucf.
|
|
Preparing to unpack .../17-ucf_3.0038_all.deb ...
|
|
Moving old data out of the way
|
|
Unpacking ucf (3.0038) ...
|
|
Selecting previously unselected package xxd.
|
|
Preparing to unpack .../18-xxd_2%3a8.0.1453-1ubuntu1.4_amd64.deb ...
|
|
Unpacking xxd (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package vim-common.
|
|
Preparing to unpack .../19-vim-common_2%3a8.0.1453-1ubuntu1.4_all.deb ...
|
|
Unpacking vim-common (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package libisc169:amd64.
|
|
Preparing to unpack .../20-libisc169_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libisc169:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libgeoip1:amd64.
|
|
Preparing to unpack .../21-libgeoip1_1.6.12-1_amd64.deb ...
|
|
Unpacking libgeoip1:amd64 (1.6.12-1) ...
|
|
Selecting previously unselected package libkrb5support0:amd64.
|
|
Preparing to unpack .../22-libkrb5support0_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libkrb5support0:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libk5crypto3:amd64.
|
|
Preparing to unpack .../23-libk5crypto3_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libk5crypto3:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libkeyutils1:amd64.
|
|
Preparing to unpack .../24-libkeyutils1_1.5.9-9.2ubuntu2_amd64.deb ...
|
|
Unpacking libkeyutils1:amd64 (1.5.9-9.2ubuntu2) ...
|
|
Selecting previously unselected package libkrb5-3:amd64.
|
|
Preparing to unpack .../25-libkrb5-3_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libkrb5-3:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libgssapi-krb5-2:amd64.
|
|
Preparing to unpack .../26-libgssapi-krb5-2_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libgssapi-krb5-2:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libdns1100:amd64.
|
|
Preparing to unpack .../27-libdns1100_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libdns1100:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libisccc160:amd64.
|
|
Preparing to unpack .../28-libisccc160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libisccc160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libisccfg160:amd64.
|
|
Preparing to unpack .../29-libisccfg160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libisccfg160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libbind9-160:amd64.
|
|
Preparing to unpack .../30-libbind9-160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package liblwres160:amd64.
|
|
Preparing to unpack .../31-liblwres160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking liblwres160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package bind9-host.
|
|
Preparing to unpack .../32-bind9-host_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking bind9-host (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libirs160:amd64.
|
|
Preparing to unpack .../33-libirs160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package dnsutils.
|
|
Preparing to unpack .../34-dnsutils_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking dnsutils (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libip6tc0:amd64.
|
|
Preparing to unpack .../35-libip6tc0_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libip6tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libiptc0:amd64.
|
|
Preparing to unpack .../36-libiptc0_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libiptc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libnetfilter-conntrack3:amd64.
|
|
Preparing to unpack .../37-libnetfilter-conntrack3_1.0.6-2_amd64.deb ...
|
|
Unpacking libnetfilter-conntrack3:amd64 (1.0.6-2) ...
|
|
Selecting previously unselected package iptables.
|
|
Preparing to unpack .../38-iptables_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking iptables (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libedit2:amd64.
|
|
Preparing to unpack .../39-libedit2_3.1-20170329-1_amd64.deb ...
|
|
Unpacking libedit2:amd64 (3.1-20170329-1) ...
|
|
Selecting previously unselected package libpcap0.8:amd64.
|
|
Preparing to unpack .../40-libpcap0.8_1.8.1-6ubuntu1.18.04.2_amd64.deb ...
|
|
Unpacking libpcap0.8:amd64 (1.8.1-6ubuntu1.18.04.2) ...
|
|
Selecting previously unselected package libpsl5:amd64.
|
|
Preparing to unpack .../41-libpsl5_0.19.1-5build1_amd64.deb ...
|
|
Unpacking libpsl5:amd64 (0.19.1-5build1) ...
|
|
Selecting previously unselected package libssl1.0.0:amd64.
|
|
Preparing to unpack .../42-libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb ...
|
|
Unpacking libssl1.0.0:amd64 (1.0.2n-1ubuntu5.5) ...
|
|
Selecting previously unselected package openssh-client.
|
|
Preparing to unpack .../43-openssh-client_1%3a7.6p1-4ubuntu0.3_amd64.deb ...
|
|
Unpacking openssh-client (1:7.6p1-4ubuntu0.3) ...
|
|
Selecting previously unselected package tcpdump.
|
|
Preparing to unpack .../44-tcpdump_4.9.3-0ubuntu0.18.04.1_amd64.deb ...
|
|
Unpacking tcpdump (4.9.3-0ubuntu0.18.04.1) ...
|
|
Selecting previously unselected package wget.
|
|
Preparing to unpack .../45-wget_1.19.4-1ubuntu2.2_amd64.deb ...
|
|
Unpacking wget (1.19.4-1ubuntu2.2) ...
|
|
Selecting previously unselected package bc.
|
|
Preparing to unpack .../46-bc_1.07.1-2_amd64.deb ...
|
|
Unpacking bc (1.07.1-2) ...
|
|
Selecting previously unselected package libroken18-heimdal:amd64.
|
|
Preparing to unpack .../47-libroken18-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libroken18-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libasn1-8-heimdal:amd64.
|
|
Preparing to unpack .../48-libasn1-8-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libasn1-8-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libheimbase1-heimdal:amd64.
|
|
Preparing to unpack .../49-libheimbase1-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libheimbase1-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libhcrypto4-heimdal:amd64.
|
|
Preparing to unpack .../50-libhcrypto4-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libhcrypto4-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libwind0-heimdal:amd64.
|
|
Preparing to unpack .../51-libwind0-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libwind0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libhx509-5-heimdal:amd64.
|
|
Preparing to unpack .../52-libhx509-5-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libhx509-5-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libkrb5-26-heimdal:amd64.
|
|
Preparing to unpack .../53-libkrb5-26-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libkrb5-26-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libheimntlm0-heimdal:amd64.
|
|
Preparing to unpack .../54-libheimntlm0-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libheimntlm0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libgssapi3-heimdal:amd64.
|
|
Preparing to unpack .../55-libgssapi3-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libgssapi3-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libsasl2-modules-db:amd64.
|
|
Preparing to unpack .../56-libsasl2-modules-db_2.1.27~101-g0780600+dfsg-3ubuntu2.1_amd64.deb ...
|
|
Unpacking libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Selecting previously unselected package libsasl2-2:amd64.
|
|
Preparing to unpack .../57-libsasl2-2_2.1.27~101-g0780600+dfsg-3ubuntu2.1_amd64.deb ...
|
|
Unpacking libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Selecting previously unselected package libldap-common.
|
|
Preparing to unpack .../58-libldap-common_2.4.45+dfsg-1ubuntu1.8_all.deb ...
|
|
Unpacking libldap-common (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Selecting previously unselected package libldap-2.4-2:amd64.
|
|
Preparing to unpack .../59-libldap-2.4-2_2.4.45+dfsg-1ubuntu1.8_amd64.deb ...
|
|
Unpacking libldap-2.4-2:amd64 (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Selecting previously unselected package libnghttp2-14:amd64.
|
|
Preparing to unpack .../60-libnghttp2-14_1.30.0-1ubuntu1_amd64.deb ...
|
|
Unpacking libnghttp2-14:amd64 (1.30.0-1ubuntu1) ...
|
|
Selecting previously unselected package librtmp1:amd64.
|
|
Preparing to unpack .../61-librtmp1_2.4+20151223.gitfa8646d.1-1_amd64.deb ...
|
|
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-1) ...
|
|
Selecting previously unselected package libcurl4:amd64.
|
|
Preparing to unpack .../62-libcurl4_7.58.0-2ubuntu3.12_amd64.deb ...
|
|
Unpacking libcurl4:amd64 (7.58.0-2ubuntu3.12) ...
|
|
Selecting previously unselected package curl.
|
|
Preparing to unpack .../63-curl_7.58.0-2ubuntu3.12_amd64.deb ...
|
|
Unpacking curl (7.58.0-2ubuntu3.12) ...
|
|
Selecting previously unselected package libblas3:amd64.
|
|
Preparing to unpack .../64-libblas3_3.7.1-4ubuntu1_amd64.deb ...
|
|
Unpacking libblas3:amd64 (3.7.1-4ubuntu1) ...
|
|
Selecting previously unselected package libgpm2:amd64.
|
|
Preparing to unpack .../65-libgpm2_1.20.7-5_amd64.deb ...
|
|
Unpacking libgpm2:amd64 (1.20.7-5) ...
|
|
Selecting previously unselected package liblinear3:amd64.
|
|
Preparing to unpack .../66-liblinear3_2.1.0+dfsg-2_amd64.deb ...
|
|
Unpacking liblinear3:amd64 (2.1.0+dfsg-2) ...
|
|
Selecting previously unselected package liblua5.3-0:amd64.
|
|
Preparing to unpack .../67-liblua5.3-0_5.3.3-1ubuntu0.18.04.1_amd64.deb ...
|
|
Unpacking liblua5.3-0:amd64 (5.3.3-1ubuntu0.18.04.1) ...
|
|
Selecting previously unselected package libpython3.6:amd64.
|
|
Preparing to unpack .../68-libpython3.6_3.6.9-1~18.04ubuntu1.3_amd64.deb ...
|
|
Unpacking libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Selecting previously unselected package libwrap0:amd64.
|
|
Preparing to unpack .../69-libwrap0_7.6.q-27_amd64.deb ...
|
|
Unpacking libwrap0:amd64 (7.6.q-27) ...
|
|
Selecting previously unselected package net-tools.
|
|
Preparing to unpack .../70-net-tools_1.60+git20161116.90da8a0-1ubuntu1_amd64.deb ...
|
|
Unpacking net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
|
|
Selecting previously unselected package openssh-sftp-server.
|
|
Preparing to unpack .../71-openssh-sftp-server_1%3a7.6p1-4ubuntu0.3_amd64.deb ...
|
|
Unpacking openssh-sftp-server (1:7.6p1-4ubuntu0.3) ...
|
|
Selecting previously unselected package openssh-server.
|
|
Preparing to unpack .../72-openssh-server_1%3a7.6p1-4ubuntu0.3_amd64.deb ...
|
|
Unpacking openssh-server (1:7.6p1-4ubuntu0.3) ...
|
|
Selecting previously unselected package shorewall-core.
|
|
Preparing to unpack .../73-shorewall-core_5.1.12.2-1_all.deb ...
|
|
Unpacking shorewall-core (5.1.12.2-1) ...
|
|
Selecting previously unselected package shorewall.
|
|
Preparing to unpack .../74-shorewall_5.1.12.2-1_all.deb ...
|
|
Unpacking shorewall (5.1.12.2-1) ...
|
|
Selecting previously unselected package vim-runtime.
|
|
Preparing to unpack .../75-vim-runtime_2%3a8.0.1453-1ubuntu1.4_all.deb ...
|
|
Adding 'diversion of /usr/share/vim/vim80/doc/help.txt to /usr/share/vim/vim80/doc/help.txt.vim-tiny by vim-runtime'
|
|
Adding 'diversion of /usr/share/vim/vim80/doc/tags to /usr/share/vim/vim80/doc/tags.vim-tiny by vim-runtime'
|
|
Unpacking vim-runtime (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package vim.
|
|
Preparing to unpack .../76-vim_2%3a8.0.1453-1ubuntu1.4_amd64.deb ...
|
|
Unpacking vim (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package nmap.
|
|
Preparing to unpack .../77-nmap_7.60-1ubuntu5_amd64.deb ...
|
|
Unpacking nmap (7.60-1ubuntu5) ...
|
|
Setting up libedit2:amd64 (3.1-20170329-1) ...
|
|
Setting up readline-common (7.0-3) ...
|
|
Setting up libexpat1:amd64 (2.2.5-3ubuntu0.2) ...
|
|
Setting up libicu60:amd64 (60.2-3ubuntu3.1) ...
|
|
Setting up libip4tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libssl1.0.0:amd64 (1.0.2n-1ubuntu5.5) ...
|
|
Setting up libnghttp2-14:amd64 (1.30.0-1ubuntu1) ...
|
|
Setting up mime-support (3.60ubuntu1) ...
|
|
Setting up xxd (2:8.0.1453-1ubuntu1.4) ...
|
|
Setting up sudo (1.8.21p2-3ubuntu1.3) ...
|
|
Setting up libgpm2:amd64 (1.20.7-5) ...
|
|
Setting up libldap-common (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Setting up libreadline7:amd64 (7.0-3) ...
|
|
Setting up libjson-c3:amd64 (0.12.1-1.3ubuntu0.3) ...
|
|
Setting up libpsl5:amd64 (0.19.1-5build1) ...
|
|
Setting up libelf1:amd64 (0.170-0.4ubuntu0.1) ...
|
|
Setting up libcap2:amd64 (1:2.25-1.2) ...
|
|
Setting up libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Setting up libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Setting up libiptc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libroken18-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-1) ...
|
|
Setting up perl-modules-5.26 (5.26.1-6ubuntu0.5) ...
|
|
Setting up libgdbm5:amd64 (1.14.1-6) ...
|
|
Setting up libgeoip1:amd64 (1.6.12-1) ...
|
|
Setting up libbsd0:amd64 (0.8.7-1ubuntu0.1) ...
|
|
Setting up libkrb5support0:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up ucf (3.0038) ...
|
|
Setting up libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
|
|
Setting up libblas3:amd64 (3.7.1-4ubuntu1) ...
|
|
update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode
|
|
Setting up libxtables12:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.7) ...
|
|
Setting up libheimbase1-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up wget (1.19.4-1ubuntu2.2) ...
|
|
Setting up vim-common (2:8.0.1453-1ubuntu1.4) ...
|
|
Setting up libsqlite3-0:amd64 (3.22.0-1ubuntu0.4) ...
|
|
Setting up libnfnetlink0:amd64 (1.0.1-3) ...
|
|
Setting up vim-runtime (2:8.0.1453-1ubuntu1.4) ...
|
|
Setting up libgdbm-compat4:amd64 (1.14.1-6) ...
|
|
Setting up libkeyutils1:amd64 (1.5.9-9.2ubuntu2) ...
|
|
Setting up bc (1.07.1-2) ...
|
|
Setting up liblinear3:amd64 (2.1.0+dfsg-2) ...
|
|
Setting up net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
|
|
Setting up liblua5.3-0:amd64 (5.3.3-1ubuntu0.18.04.1) ...
|
|
Setting up libmnl0:amd64 (1.0.4-2) ...
|
|
Setting up liblwres160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up libidn11:amd64 (1.33-2.1ubuntu1.2) ...
|
|
Setting up libmpdec2:amd64 (2.4.2-1ubuntu1) ...
|
|
Setting up libip6tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libwrap0:amd64 (7.6.q-27) ...
|
|
Setting up libpcap0.8:amd64 (1.8.1-6ubuntu1.18.04.2) ...
|
|
Setting up iputils-ping (3:20161105-1ubuntu3) ...
|
|
Setting up libisc169:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libk5crypto3:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up libisccc160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libnetfilter-conntrack3:amd64 (1.0.6-2) ...
|
|
Setting up libwind0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up nmap (7.60-1ubuntu5) ...
|
|
Setting up libasn1-8-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up libhcrypto4-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up python2.7 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up iproute2 (4.15.0-2ubuntu1.2) ...
|
|
Setting up libhx509-5-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up tcpdump (4.9.3-0ubuntu0.18.04.1) ...
|
|
Setting up libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Setting up libpython-stdlib:amd64 (2.7.15~rc1-1) ...
|
|
Setting up libperl5.26:amd64 (5.26.1-6ubuntu0.5) ...
|
|
Setting up iptables (1.6.1-2ubuntu2) ...
|
|
Setting up libkrb5-3:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up libkrb5-26-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up libheimntlm0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up python (2.7.15~rc1-1) ...
|
|
Setting up libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Setting up libgssapi-krb5-2:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up perl (5.26.1-6ubuntu0.5) ...
|
|
Setting up libgssapi3-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up libdns1100:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up openssh-client (1:7.6p1-4ubuntu0.3) ...
|
|
Setting up libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Setting up vim (2:8.0.1453-1ubuntu1.4) ...
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist
|
|
Setting up shorewall-core (5.1.12.2-1) ...
|
|
Setting up libisccfg160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up openssh-sftp-server (1:7.6p1-4ubuntu0.3) ...
|
|
Setting up libldap-2.4-2:amd64 (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Setting up shorewall (5.1.12.2-1) ...
|
|
Setting up libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libcurl4:amd64 (7.58.0-2ubuntu3.12) ...
|
|
Setting up libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up openssh-server (1:7.6p1-4ubuntu0.3) ...
|
|
|
|
Creating config file /etc/ssh/sshd_config with new version
|
|
Creating SSH2 RSA key; this may take some time ...
|
|
2048 SHA256:KFycZO2QX9kPmLS1hD1LwhU3DxZBlFztcz+uqgJx0RM root@d75ba4fd1565 (RSA)
|
|
Creating SSH2 ECDSA key; this may take some time ...
|
|
256 SHA256:2NIyO2nRaWSPp5JIdtghHbWmnGgGj/SVcrpfmJqE6fI root@d75ba4fd1565 (ECDSA)
|
|
Creating SSH2 ED25519 key; this may take some time ...
|
|
256 SHA256:rf8k5D+ImhGYmYTHo+j2CwErD8XsG8Cm6BOb2CYF2TA root@d75ba4fd1565 (ED25519)
|
|
invoke-rc.d: could not determine current runlevel
|
|
invoke-rc.d: policy-rc.d denied execution of start.
|
|
Setting up bind9-host (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up curl (7.58.0-2ubuntu3.12) ...
|
|
Setting up dnsutils (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Processing triggers for libc-bin (2.27-3ubuntu1.3) ...
|
|
Removing intermediate container d75ba4fd1565
|
|
---> 0432f5a3ec58
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in e76dedd58cc2
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container e76dedd58cc2
|
|
---> c234a6e27049
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 8de0897484dd
|
|
Removing intermediate container 8de0897484dd
|
|
---> e15c18f22232
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 8fc750826453
|
|
Removing intermediate container 8fc750826453
|
|
---> be33a03bf3ae
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in b2b827b1e16d
|
|
Removing intermediate container b2b827b1e16d
|
|
---> 397a27bc19a6
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in ba0e281ba5a3
|
|
Removing intermediate container ba0e281ba5a3
|
|
---> 80aea39d54a9
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 2a42b1484df3
|
|
Removing intermediate container 2a42b1484df3
|
|
---> b1fcdb679aed
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in bc0b8c0c32c1
|
|
Removing intermediate container bc0b8c0c32c1
|
|
---> 3982fcc6efca
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in eaf1c4cebddc
|
|
Removing intermediate container eaf1c4cebddc
|
|
---> f829c78130d7
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> a39c5113392c
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> c6508816bc86
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 33d15eb265ae
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 36f2615ad4bf
|
|
Removing intermediate container 36f2615ad4bf
|
|
---> f98f7626c5e8
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 1c9127392604
|
|
Step 17/23 : RUN mkdir -p /project
|
|
---> Running in 3c71a14018d0
|
|
Removing intermediate container 3c71a14018d0
|
|
---> 685faa896f3f
|
|
Step 18/23 : RUN mkdir -p /etc/opt
|
|
---> Running in cf08227292b6
|
|
Removing intermediate container cf08227292b6
|
|
---> 9a84f419bbe6
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 8ff1c685dde5
|
|
Removing intermediate container 8ff1c685dde5
|
|
---> b4997e06a9c0
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> a5dce154a461
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 3250c2daa010
|
|
Adding user `docker' to group `sudo' ...
|
|
Adding user docker to group sudo
|
|
Done.
|
|
Removing intermediate container 3250c2daa010
|
|
---> ff7766cd9a93
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 4bfcdc8d110a
|
|
Step 23/23 : USER docker
|
|
---> Running in 15d5ad6ee6aa
|
|
Removing intermediate container 15d5ad6ee6aa
|
|
---> 621ec530c335
|
|
Successfully built 621ec530c335
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
c65081711af8: Preparing
|
|
e08c5923be6b: Preparing
|
|
33cfe45b0979: Preparing
|
|
257fefb13fac: Preparing
|
|
7ed8d156ec94: Preparing
|
|
242f180f3ae0: Preparing
|
|
f58ddfe44eef: Preparing
|
|
748c986f448a: Preparing
|
|
c0bd0a627503: Preparing
|
|
a55bad2deee0: Preparing
|
|
3bf38be5c1ad: Preparing
|
|
4f8b94a8ff52: Preparing
|
|
bac6f5cfa7b8: Preparing
|
|
1f3c311d6d61: Preparing
|
|
3baf8e7e389b: Preparing
|
|
7a1e164803e3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
242f180f3ae0: Waiting
|
|
f58ddfe44eef: Waiting
|
|
1f3c311d6d61: Waiting
|
|
3baf8e7e389b: Waiting
|
|
7a1e164803e3: Waiting
|
|
fe6d8881187d: Waiting
|
|
748c986f448a: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
3bf38be5c1ad: Waiting
|
|
c0bd0a627503: Waiting
|
|
a55bad2deee0: Waiting
|
|
bac6f5cfa7b8: Waiting
|
|
4f8b94a8ff52: Waiting
|
|
33cfe45b0979: Pushed
|
|
e08c5923be6b: Pushed
|
|
257fefb13fac: Pushed
|
|
c65081711af8: Pushed
|
|
7ed8d156ec94: Pushed
|
|
242f180f3ae0: Pushed
|
|
f58ddfe44eef: Pushed
|
|
748c986f448a: Pushed
|
|
c0bd0a627503: Pushed
|
|
a55bad2deee0: Pushed
|
|
3bf38be5c1ad: Pushed
|
|
4f8b94a8ff52: Pushed
|
|
bac6f5cfa7b8: Pushed
|
|
1f3c311d6d61: Pushed
|
|
3baf8e7e389b: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
b43408d5f11b: Pushed
|
|
7a1e164803e3: Pushed
|
|
latest: digest: sha256:8c9db2c37b46cf363f14c3b611e94418e86595709783a412499710ff429aa637 size: 4264
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 112.6kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 621ec530c335
|
|
Step 2/23 : USER root
|
|
---> Running in de0eb5c4c99b
|
|
Removing intermediate container de0eb5c4c99b
|
|
---> c8cd26548e77
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 95f272025638
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 12s (1827 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 95f272025638
|
|
---> 4fcbdc1c0d74
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in a78808f7ab61
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container a78808f7ab61
|
|
---> 7b735ba603a6
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 2f6c36e0de3e
|
|
Removing intermediate container 2f6c36e0de3e
|
|
---> 2e7cce7f5d19
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in a89fbbc49f6b
|
|
Removing intermediate container a89fbbc49f6b
|
|
---> 63181b38783c
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 96be7ae459ec
|
|
Removing intermediate container 96be7ae459ec
|
|
---> 9e9544bce5e8
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in fbfd6a8b4539
|
|
Removing intermediate container fbfd6a8b4539
|
|
---> a32b167a2602
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in bbcf3efdc5f1
|
|
Removing intermediate container bbcf3efdc5f1
|
|
---> 05745284852a
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 392aec4a5610
|
|
Removing intermediate container 392aec4a5610
|
|
---> 50fd9ceb3a85
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 4788f33fc33c
|
|
Removing intermediate container 4788f33fc33c
|
|
---> 7a38aad59274
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> e24a0f1c6f24
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> cf993a4986d5
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> b55060e5ff77
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 74bec5ff3450
|
|
Removing intermediate container 74bec5ff3450
|
|
---> 7c378362edb3
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> ee8c551b1894
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 9c72bf7d8fe9
|
|
Removing intermediate container 9c72bf7d8fe9
|
|
---> b87507c0261e
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in c24d3a985429
|
|
Removing intermediate container c24d3a985429
|
|
---> f09f6c664182
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 1f9b0162d11f
|
|
Removing intermediate container 1f9b0162d11f
|
|
---> 407319b8491e
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 3367082b996c
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 69661c6b4803
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 69661c6b4803
|
|
---> 84e989436cd5
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> da05976708f5
|
|
Step 23/23 : USER docker
|
|
---> Running in 79af5578b792
|
|
Removing intermediate container 79af5578b792
|
|
---> e26554a311c4
|
|
Successfully built e26554a311c4
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
a1d2cea62dbf: Preparing
|
|
f3ce43e88437: Preparing
|
|
f7edc19a8d63: Preparing
|
|
90e959f492a3: Preparing
|
|
d06e118b4bc3: Preparing
|
|
94e39dbcfeda: Preparing
|
|
e42ebb5006fd: Preparing
|
|
22143a084401: Preparing
|
|
cd089230a130: Preparing
|
|
e22c66715f65: Preparing
|
|
c767402c44ea: Preparing
|
|
89427ad5ed30: Preparing
|
|
5c466de0a20e: Preparing
|
|
e4cb3af20151: Preparing
|
|
c65081711af8: Preparing
|
|
e08c5923be6b: Preparing
|
|
33cfe45b0979: Preparing
|
|
257fefb13fac: Preparing
|
|
7ed8d156ec94: Preparing
|
|
242f180f3ae0: Preparing
|
|
f58ddfe44eef: Preparing
|
|
748c986f448a: Preparing
|
|
c0bd0a627503: Preparing
|
|
a55bad2deee0: Preparing
|
|
3bf38be5c1ad: Preparing
|
|
4f8b94a8ff52: Preparing
|
|
bac6f5cfa7b8: Preparing
|
|
1f3c311d6d61: Preparing
|
|
3baf8e7e389b: Preparing
|
|
7a1e164803e3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
94e39dbcfeda: Waiting
|
|
e42ebb5006fd: Waiting
|
|
22143a084401: Waiting
|
|
cd089230a130: Waiting
|
|
e22c66715f65: Waiting
|
|
c767402c44ea: Waiting
|
|
89427ad5ed30: Waiting
|
|
5c466de0a20e: Waiting
|
|
e4cb3af20151: Waiting
|
|
c65081711af8: Waiting
|
|
e08c5923be6b: Waiting
|
|
33cfe45b0979: Waiting
|
|
257fefb13fac: Waiting
|
|
7ed8d156ec94: Waiting
|
|
242f180f3ae0: Waiting
|
|
f58ddfe44eef: Waiting
|
|
748c986f448a: Waiting
|
|
c0bd0a627503: Waiting
|
|
3bf38be5c1ad: Waiting
|
|
4f8b94a8ff52: Waiting
|
|
bac6f5cfa7b8: Waiting
|
|
b43408d5f11b: Waiting
|
|
1f3c311d6d61: Waiting
|
|
3baf8e7e389b: Waiting
|
|
7a1e164803e3: Waiting
|
|
fe6d8881187d: Waiting
|
|
23135df75b44: Waiting
|
|
a55bad2deee0: Waiting
|
|
d06e118b4bc3: Pushed
|
|
f3ce43e88437: Pushed
|
|
f7edc19a8d63: Pushed
|
|
a1d2cea62dbf: Pushed
|
|
90e959f492a3: Pushed
|
|
94e39dbcfeda: Pushed
|
|
e42ebb5006fd: Pushed
|
|
22143a084401: Pushed
|
|
e22c66715f65: Pushed
|
|
cd089230a130: Pushed
|
|
c767402c44ea: Pushed
|
|
5c466de0a20e: Pushed
|
|
89427ad5ed30: Pushed
|
|
c65081711af8: Pushed
|
|
257fefb13fac: Pushed
|
|
e08c5923be6b: Pushed
|
|
7ed8d156ec94: Pushed
|
|
33cfe45b0979: Pushed
|
|
242f180f3ae0: Pushed
|
|
f58ddfe44eef: Pushed
|
|
748c986f448a: Pushed
|
|
c0bd0a627503: Pushed
|
|
4f8b94a8ff52: Pushed
|
|
3bf38be5c1ad: Pushed
|
|
a55bad2deee0: Pushed
|
|
bac6f5cfa7b8: Pushed
|
|
3baf8e7e389b: Pushed
|
|
1f3c311d6d61: Pushed
|
|
23135df75b44: Pushed
|
|
fe6d8881187d: Pushed
|
|
e4cb3af20151: Pushed
|
|
b43408d5f11b: Pushed
|
|
7a1e164803e3: Pushed
|
|
latest: digest: sha256:ae948538dbbae95157924b1e3ff6f5c11b700c64f5d2f611f3bfd332c61d2f8a size: 7171
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 115.2kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> e26554a311c4
|
|
Step 2/23 : USER root
|
|
---> Running in c5a69c43f00b
|
|
Removing intermediate container c5a69c43f00b
|
|
---> fb3c206c61b4
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 6f589f4bdea0
|
|
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:3 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 12s (1776 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 6f589f4bdea0
|
|
---> cab654ad0515
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 24034873866d
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 24034873866d
|
|
---> 25b0eab998a1
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 265f3f5ab743
|
|
Removing intermediate container 265f3f5ab743
|
|
---> ca9459913e10
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in c890c44dda78
|
|
Removing intermediate container c890c44dda78
|
|
---> b4644a9c85f7
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in feda1deef3d0
|
|
Removing intermediate container feda1deef3d0
|
|
---> f70a89c9271f
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in b8c376e3a8fd
|
|
Removing intermediate container b8c376e3a8fd
|
|
---> d07ca0842898
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 299900db1f47
|
|
Removing intermediate container 299900db1f47
|
|
---> 427769f897a1
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 97828b838ca5
|
|
Removing intermediate container 97828b838ca5
|
|
---> 903f701d35c2
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 71e8a80ed897
|
|
Removing intermediate container 71e8a80ed897
|
|
---> e6ab90625809
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 1999b8da243f
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 5785c4e3094c
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> b10b327388f0
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 801065b8f404
|
|
Removing intermediate container 801065b8f404
|
|
---> c168d49c06e9
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 5109f6de0436
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 68ee53b1a5f0
|
|
Removing intermediate container 68ee53b1a5f0
|
|
---> 6e0afc590033
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in bde50ab0378b
|
|
Removing intermediate container bde50ab0378b
|
|
---> 7150899a8fda
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in c27cc761b739
|
|
Removing intermediate container c27cc761b739
|
|
---> 59eb24d7f551
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 7555bf53c7cd
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 66d6fb593018
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 66d6fb593018
|
|
---> 3253c91ac45f
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 027c07e25eef
|
|
Step 23/23 : USER docker
|
|
---> Running in ea869404e402
|
|
Removing intermediate container ea869404e402
|
|
---> e1f1bb589b23
|
|
Successfully built e1f1bb589b23
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
21efa4eba8b1: Preparing
|
|
d59124498620: Preparing
|
|
57b292cb4083: Preparing
|
|
53049aef3d56: Preparing
|
|
863cb086b83b: Preparing
|
|
45bdc6f61aed: Preparing
|
|
5b486ace0136: Preparing
|
|
800b9253e15d: Preparing
|
|
7369e76a1f43: Preparing
|
|
3263ac556437: Preparing
|
|
3cf1f6b102af: Preparing
|
|
d80d9597e45a: Preparing
|
|
3e52419df646: Preparing
|
|
a3a7a724b578: Preparing
|
|
a1d2cea62dbf: Preparing
|
|
f3ce43e88437: Preparing
|
|
f7edc19a8d63: Preparing
|
|
90e959f492a3: Preparing
|
|
d06e118b4bc3: Preparing
|
|
94e39dbcfeda: Preparing
|
|
e42ebb5006fd: Preparing
|
|
22143a084401: Preparing
|
|
cd089230a130: Preparing
|
|
e22c66715f65: Preparing
|
|
c767402c44ea: Preparing
|
|
89427ad5ed30: Preparing
|
|
5c466de0a20e: Preparing
|
|
e4cb3af20151: Preparing
|
|
c65081711af8: Preparing
|
|
e08c5923be6b: Preparing
|
|
33cfe45b0979: Preparing
|
|
257fefb13fac: Preparing
|
|
7ed8d156ec94: Preparing
|
|
242f180f3ae0: Preparing
|
|
f58ddfe44eef: Preparing
|
|
748c986f448a: Preparing
|
|
c0bd0a627503: Preparing
|
|
a55bad2deee0: Preparing
|
|
3bf38be5c1ad: Preparing
|
|
4f8b94a8ff52: Preparing
|
|
bac6f5cfa7b8: Preparing
|
|
1f3c311d6d61: Preparing
|
|
3baf8e7e389b: Preparing
|
|
7a1e164803e3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
c767402c44ea: Waiting
|
|
89427ad5ed30: Waiting
|
|
5c466de0a20e: Waiting
|
|
e4cb3af20151: Waiting
|
|
c65081711af8: Waiting
|
|
e08c5923be6b: Waiting
|
|
45bdc6f61aed: Waiting
|
|
5b486ace0136: Waiting
|
|
800b9253e15d: Waiting
|
|
7369e76a1f43: Waiting
|
|
3263ac556437: Waiting
|
|
3cf1f6b102af: Waiting
|
|
d80d9597e45a: Waiting
|
|
3e52419df646: Waiting
|
|
a3a7a724b578: Waiting
|
|
a1d2cea62dbf: Waiting
|
|
f3ce43e88437: Waiting
|
|
f7edc19a8d63: Waiting
|
|
90e959f492a3: Waiting
|
|
d06e118b4bc3: Waiting
|
|
94e39dbcfeda: Waiting
|
|
e42ebb5006fd: Waiting
|
|
22143a084401: Waiting
|
|
cd089230a130: Waiting
|
|
e22c66715f65: Waiting
|
|
257fefb13fac: Waiting
|
|
7ed8d156ec94: Waiting
|
|
242f180f3ae0: Waiting
|
|
748c986f448a: Waiting
|
|
c0bd0a627503: Waiting
|
|
a55bad2deee0: Waiting
|
|
3bf38be5c1ad: Waiting
|
|
4f8b94a8ff52: Waiting
|
|
bac6f5cfa7b8: Waiting
|
|
1f3c311d6d61: Waiting
|
|
3baf8e7e389b: Waiting
|
|
7a1e164803e3: Waiting
|
|
fe6d8881187d: Waiting
|
|
f58ddfe44eef: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
33cfe45b0979: Waiting
|
|
57b292cb4083: Pushed
|
|
863cb086b83b: Pushed
|
|
53049aef3d56: Pushed
|
|
d59124498620: Pushed
|
|
21efa4eba8b1: Pushed
|
|
5b486ace0136: Pushed
|
|
45bdc6f61aed: Pushed
|
|
7369e76a1f43: Pushed
|
|
800b9253e15d: Pushed
|
|
3263ac556437: Pushed
|
|
d80d9597e45a: Pushed
|
|
3cf1f6b102af: Pushed
|
|
3e52419df646: Pushed
|
|
a1d2cea62dbf: Pushed
|
|
f3ce43e88437: Pushed
|
|
f7edc19a8d63: Pushed
|
|
90e959f492a3: Pushed
|
|
d06e118b4bc3: Pushed
|
|
e42ebb5006fd: Pushed
|
|
94e39dbcfeda: Pushed
|
|
22143a084401: Pushed
|
|
cd089230a130: Pushed
|
|
e22c66715f65: Pushed
|
|
c767402c44ea: Pushed
|
|
89427ad5ed30: Pushed
|
|
5c466de0a20e: Pushed
|
|
c65081711af8: Pushed
|
|
33cfe45b0979: Pushed
|
|
e08c5923be6b: Pushed
|
|
257fefb13fac: Pushed
|
|
7ed8d156ec94: Pushed
|
|
242f180f3ae0: Pushed
|
|
f58ddfe44eef: Pushed
|
|
748c986f448a: Pushed
|
|
a55bad2deee0: Pushed
|
|
c0bd0a627503: Pushed
|
|
3bf38be5c1ad: Pushed
|
|
4f8b94a8ff52: Pushed
|
|
bac6f5cfa7b8: Pushed
|
|
1f3c311d6d61: Pushed
|
|
3baf8e7e389b: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
a3a7a724b578: Pushed
|
|
e4cb3af20151: Pushed
|
|
b43408d5f11b: Pushed
|
|
7a1e164803e3: Pushed
|
|
latest: digest: sha256:bb39d8704792942d92596f1af9c7ed315efd3a5773a151f24f497b04d2ca291c size: 10077
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 118.3kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> e1f1bb589b23
|
|
Step 2/23 : USER root
|
|
---> Running in 5a7bba3d8247
|
|
Removing intermediate container 5a7bba3d8247
|
|
---> bcea465dee97
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 706204f6eeea
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 15s (1456 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 706204f6eeea
|
|
---> 418b23477078
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 75f9631c8f21
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 75f9631c8f21
|
|
---> cdbba4dc71cf
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 48a5876a9e96
|
|
Removing intermediate container 48a5876a9e96
|
|
---> 46689864ff32
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 6bcff7b05455
|
|
Removing intermediate container 6bcff7b05455
|
|
---> 684cd2b193c7
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 130a69a4de5a
|
|
Removing intermediate container 130a69a4de5a
|
|
---> 5b8d833ee7a1
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in f5d88ddf499b
|
|
Removing intermediate container f5d88ddf499b
|
|
---> 3c74c8ff3dd2
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in f6a9421b68f3
|
|
Removing intermediate container f6a9421b68f3
|
|
---> 097bcefa5588
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 9e3506c4b31b
|
|
Removing intermediate container 9e3506c4b31b
|
|
---> 0fd93a9abe44
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in c02364b33f72
|
|
Removing intermediate container c02364b33f72
|
|
---> f4d5839a4410
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 4e3a9da52584
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 62ae98d21172
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 0bf8711c1abf
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 30ca5802e016
|
|
Removing intermediate container 30ca5802e016
|
|
---> 97b86c4e418c
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 2a193c5ad540
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in dce0e212ae3e
|
|
Removing intermediate container dce0e212ae3e
|
|
---> cb303c9bc31f
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 2c2b59e675d8
|
|
Removing intermediate container 2c2b59e675d8
|
|
---> 82aa9d9475c7
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 872e15269087
|
|
Removing intermediate container 872e15269087
|
|
---> daf1b59c6f55
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 6e08b0bb3040
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 1c740055c2e1
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 1c740055c2e1
|
|
---> dd9b86284034
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 12d03dd5b2e1
|
|
Step 23/23 : USER docker
|
|
---> Running in 48694f4ed80b
|
|
Removing intermediate container 48694f4ed80b
|
|
---> ef98f7ae9779
|
|
Successfully built ef98f7ae9779
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
Get http://localhost:5000/v2/: dial tcp 127.0.0.1:5000: connect: connection refused
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 120.3kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> ef98f7ae9779
|
|
Step 2/23 : USER root
|
|
---> Running in 8981f1320fae
|
|
Removing intermediate container 8981f1320fae
|
|
---> 5807e005e04f
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 8263b8ccb9ce
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 11s (1883 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 8263b8ccb9ce
|
|
---> c661f74497f2
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in b627aeb0f21f
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container b627aeb0f21f
|
|
---> 744ceceb5827
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 9db0c52196b4
|
|
Removing intermediate container 9db0c52196b4
|
|
---> 9ca63e85b3c9
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 588008819e9a
|
|
Removing intermediate container 588008819e9a
|
|
---> 258ec0e05ff5
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 3ebe4ff27803
|
|
Removing intermediate container 3ebe4ff27803
|
|
---> 1c13fd9bc258
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 66d66366dfa0
|
|
Removing intermediate container 66d66366dfa0
|
|
---> fe17761dc84c
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in a8a64eefd190
|
|
Removing intermediate container a8a64eefd190
|
|
---> 2fc5f040121c
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 42dc0eb349be
|
|
Removing intermediate container 42dc0eb349be
|
|
---> 9c93ba019914
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in fa4ae91449d8
|
|
Removing intermediate container fa4ae91449d8
|
|
---> 93d7c20ba1f1
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 3e3074e24137
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 1aff6c513332
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> aa2751508015
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 8e45a1988ad1
|
|
Removing intermediate container 8e45a1988ad1
|
|
---> 244c411aef42
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> d1cc8decfa73
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 369844ad129a
|
|
Removing intermediate container 369844ad129a
|
|
---> fb7121222118
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in a81401fe95f9
|
|
Removing intermediate container a81401fe95f9
|
|
---> ccf2067ba5f7
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 67354327420b
|
|
Removing intermediate container 67354327420b
|
|
---> f8bba7aecca1
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 10b92748bac1
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in a69224ad62a6
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container a69224ad62a6
|
|
---> 23a724c53e2d
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 5096263867ec
|
|
Step 23/23 : USER docker
|
|
---> Running in 5fd7b7f5f8fd
|
|
Removing intermediate container 5fd7b7f5f8fd
|
|
---> 86a201f61f00
|
|
Successfully built 86a201f61f00
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
418a1420f848: Preparing
|
|
d4ef6687ec24: Preparing
|
|
d26c000fe807: Preparing
|
|
2dc6d8f0563b: Preparing
|
|
9819c3e138d9: Preparing
|
|
6d4e984a00ed: Preparing
|
|
9f9cf4d793d9: Preparing
|
|
c4aae6fbd5ee: Preparing
|
|
244a3b1d1a28: Preparing
|
|
71cf7b156c8f: Preparing
|
|
36995f901c74: Preparing
|
|
1306a073c2e4: Preparing
|
|
ae95b6e7214b: Preparing
|
|
1f2fe9d817e7: Preparing
|
|
9f1fded15526: Preparing
|
|
00c6a057b22e: Preparing
|
|
81aec7de5067: Preparing
|
|
99f60f3d6fb4: Preparing
|
|
2a22607e7f72: Preparing
|
|
3f3092edcc59: Preparing
|
|
2f265df07905: Preparing
|
|
4b0ba71d4d49: Preparing
|
|
94dd507fd40a: Preparing
|
|
02d9286ccd96: Preparing
|
|
65ba9c307279: Preparing
|
|
6a419e5480a4: Preparing
|
|
25c8a466d710: Preparing
|
|
9692e7e66d73: Preparing
|
|
21efa4eba8b1: Preparing
|
|
d59124498620: Preparing
|
|
57b292cb4083: Preparing
|
|
53049aef3d56: Preparing
|
|
863cb086b83b: Preparing
|
|
45bdc6f61aed: Preparing
|
|
5b486ace0136: Preparing
|
|
800b9253e15d: Preparing
|
|
7369e76a1f43: Preparing
|
|
3263ac556437: Preparing
|
|
3cf1f6b102af: Preparing
|
|
d80d9597e45a: Preparing
|
|
3e52419df646: Preparing
|
|
a3a7a724b578: Preparing
|
|
a1d2cea62dbf: Preparing
|
|
f3ce43e88437: Preparing
|
|
f7edc19a8d63: Preparing
|
|
90e959f492a3: Preparing
|
|
d06e118b4bc3: Preparing
|
|
94e39dbcfeda: Preparing
|
|
e42ebb5006fd: Preparing
|
|
22143a084401: Preparing
|
|
cd089230a130: Preparing
|
|
e22c66715f65: Preparing
|
|
c767402c44ea: Preparing
|
|
89427ad5ed30: Preparing
|
|
5c466de0a20e: Preparing
|
|
e4cb3af20151: Preparing
|
|
c65081711af8: Preparing
|
|
e08c5923be6b: Preparing
|
|
33cfe45b0979: Preparing
|
|
257fefb13fac: Preparing
|
|
7ed8d156ec94: Preparing
|
|
242f180f3ae0: Preparing
|
|
f58ddfe44eef: Preparing
|
|
748c986f448a: Preparing
|
|
c0bd0a627503: Preparing
|
|
a55bad2deee0: Preparing
|
|
6d4e984a00ed: Waiting
|
|
3bf38be5c1ad: Preparing
|
|
4f8b94a8ff52: Preparing
|
|
bac6f5cfa7b8: Preparing
|
|
9f9cf4d793d9: Waiting
|
|
1f3c311d6d61: Preparing
|
|
3baf8e7e389b: Preparing
|
|
c4aae6fbd5ee: Waiting
|
|
7a1e164803e3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
244a3b1d1a28: Waiting
|
|
b43408d5f11b: Preparing
|
|
71cf7b156c8f: Waiting
|
|
45bdc6f61aed: Waiting
|
|
5b486ace0136: Waiting
|
|
36995f901c74: Waiting
|
|
800b9253e15d: Waiting
|
|
1306a073c2e4: Waiting
|
|
7369e76a1f43: Waiting
|
|
ae95b6e7214b: Waiting
|
|
3263ac556437: Waiting
|
|
1f2fe9d817e7: Waiting
|
|
9f1fded15526: Waiting
|
|
00c6a057b22e: Waiting
|
|
81aec7de5067: Waiting
|
|
99f60f3d6fb4: Waiting
|
|
2a22607e7f72: Waiting
|
|
3f3092edcc59: Waiting
|
|
2f265df07905: Waiting
|
|
4b0ba71d4d49: Waiting
|
|
94dd507fd40a: Waiting
|
|
02d9286ccd96: Waiting
|
|
65ba9c307279: Waiting
|
|
6a419e5480a4: Waiting
|
|
25c8a466d710: Waiting
|
|
863cb086b83b: Waiting
|
|
9692e7e66d73: Waiting
|
|
21efa4eba8b1: Waiting
|
|
d59124498620: Waiting
|
|
57b292cb4083: Waiting
|
|
53049aef3d56: Waiting
|
|
d80d9597e45a: Waiting
|
|
3e52419df646: Waiting
|
|
a3a7a724b578: Waiting
|
|
a1d2cea62dbf: Waiting
|
|
f3ce43e88437: Waiting
|
|
f7edc19a8d63: Waiting
|
|
90e959f492a3: Waiting
|
|
d06e118b4bc3: Waiting
|
|
e08c5923be6b: Waiting
|
|
94e39dbcfeda: Waiting
|
|
33cfe45b0979: Waiting
|
|
e42ebb5006fd: Waiting
|
|
257fefb13fac: Waiting
|
|
22143a084401: Waiting
|
|
7ed8d156ec94: Waiting
|
|
cd089230a130: Waiting
|
|
242f180f3ae0: Waiting
|
|
e22c66715f65: Waiting
|
|
f58ddfe44eef: Waiting
|
|
c767402c44ea: Waiting
|
|
748c986f448a: Waiting
|
|
89427ad5ed30: Waiting
|
|
4f8b94a8ff52: Waiting
|
|
c0bd0a627503: Waiting
|
|
bac6f5cfa7b8: Waiting
|
|
5c466de0a20e: Waiting
|
|
a55bad2deee0: Waiting
|
|
1f3c311d6d61: Waiting
|
|
e4cb3af20151: Waiting
|
|
3bf38be5c1ad: Waiting
|
|
3baf8e7e389b: Waiting
|
|
7a1e164803e3: Waiting
|
|
c65081711af8: Waiting
|
|
fe6d8881187d: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
9819c3e138d9: Pushed
|
|
d4ef6687ec24: Pushed
|
|
2dc6d8f0563b: Pushed
|
|
d26c000fe807: Pushed
|
|
9f9cf4d793d9: Pushed
|
|
6d4e984a00ed: Pushed
|
|
c4aae6fbd5ee: Pushed
|
|
244a3b1d1a28: Pushed
|
|
418a1420f848: Pushed
|
|
71cf7b156c8f: Pushed
|
|
36995f901c74: Pushed
|
|
1306a073c2e4: Pushed
|
|
ae95b6e7214b: Pushed
|
|
9f1fded15526: Pushed
|
|
00c6a057b22e: Pushed
|
|
99f60f3d6fb4: Pushed
|
|
81aec7de5067: Pushed
|
|
3f3092edcc59: Pushed
|
|
2a22607e7f72: Pushed
|
|
2f265df07905: Pushed
|
|
94dd507fd40a: Pushed
|
|
4b0ba71d4d49: Pushed
|
|
02d9286ccd96: Pushed
|
|
65ba9c307279: Pushed
|
|
6a419e5480a4: Pushed
|
|
25c8a466d710: Pushed
|
|
21efa4eba8b1: Pushed
|
|
d59124498620: Pushed
|
|
57b292cb4083: Pushed
|
|
53049aef3d56: Pushed
|
|
863cb086b83b: Pushed
|
|
45bdc6f61aed: Pushed
|
|
800b9253e15d: Pushed
|
|
5b486ace0136: Pushed
|
|
7369e76a1f43: Pushed
|
|
3263ac556437: Pushed
|
|
3cf1f6b102af: Pushed
|
|
d80d9597e45a: Pushed
|
|
3e52419df646: Pushed
|
|
a1d2cea62dbf: Pushed
|
|
f3ce43e88437: Pushed
|
|
f7edc19a8d63: Pushed
|
|
90e959f492a3: Pushed
|
|
d06e118b4bc3: Pushed
|
|
94e39dbcfeda: Pushed
|
|
e42ebb5006fd: Pushed
|
|
22143a084401: Pushed
|
|
cd089230a130: Pushed
|
|
e22c66715f65: Pushed
|
|
c767402c44ea: Pushed
|
|
89427ad5ed30: Pushed
|
|
5c466de0a20e: Pushed
|
|
c65081711af8: Pushed
|
|
e08c5923be6b: Pushed
|
|
33cfe45b0979: Pushed
|
|
9692e7e66d73: Pushed
|
|
257fefb13fac: Pushed
|
|
1f2fe9d817e7: Pushed
|
|
7ed8d156ec94: Pushed
|
|
242f180f3ae0: Pushed
|
|
f58ddfe44eef: Pushed
|
|
748c986f448a: Pushed
|
|
c0bd0a627503: Pushed
|
|
a55bad2deee0: Pushed
|
|
4f8b94a8ff52: Pushed
|
|
3bf38be5c1ad: Pushed
|
|
bac6f5cfa7b8: Pushed
|
|
1f3c311d6d61: Pushed
|
|
3baf8e7e389b: Pushed
|
|
a3a7a724b578: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
e4cb3af20151: Pushed
|
|
b43408d5f11b: Pushed
|
|
7a1e164803e3: Pushed
|
|
latest: digest: sha256:d5502f0aa28d548581fbb2e1fc36a16fd1dab4808ded1ebc86e7eb9dd9cf99e6 size: 15889
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Stopping hybrid_worker_2 ...
|
|
Stopping hybrid_worker_1 ...
|
|
Stopping hybrid_master_1 ...
|
|
Stopping hybrid_registry_1 ...
|
|
[1A[2K
|
|
Stopping hybrid_registry_1 ... [32mdone[0m
|
|
[1B[3A[2K
|
|
Stopping hybrid_worker_1 ... [32mdone[0m
|
|
[3B[4A[2K
|
|
Stopping hybrid_worker_2 ... [32mdone[0m
|
|
[4B[2A[2K
|
|
Stopping hybrid_master_1 ... [32mdone[0m
|
|
[2BRemoving hybrid_worker_2 ...
|
|
Removing hybrid_worker_1 ...
|
|
Removing hybrid_master_1 ...
|
|
Removing hybrid_registry_1 ...
|
|
[2A[2K
|
|
Removing hybrid_master_1 ... [32mdone[0m
|
|
[2B[4A[2K
|
|
Removing hybrid_worker_2 ... [32mdone[0m
|
|
[4B[3A[2K
|
|
Removing hybrid_worker_1 ... [32mdone[0m
|
|
[3B[1A[2K
|
|
Removing hybrid_registry_1 ... [32mdone[0m
|
|
[1BRemoving network hybrid_default
|
|
Removing network hybrid_net
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 123.4kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 86a201f61f00
|
|
Step 2/23 : USER root
|
|
---> Running in ef6dc87afdbb
|
|
Removing intermediate container ef6dc87afdbb
|
|
---> bb36b754b4b4
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in a175b311a013
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 11s (1918 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container a175b311a013
|
|
---> fe4d1e2cdd7d
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in ce9ddfc9bed6
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container ce9ddfc9bed6
|
|
---> ff6c725773d5
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in de215b6e2e30
|
|
Removing intermediate container de215b6e2e30
|
|
---> 80d17ac129ea
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in af18401a2d57
|
|
Removing intermediate container af18401a2d57
|
|
---> 6089377f954c
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 9782411525d5
|
|
Removing intermediate container 9782411525d5
|
|
---> c367fd1315ad
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 5f05deaa144d
|
|
Removing intermediate container 5f05deaa144d
|
|
---> e371b62bfc80
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in b2e615591051
|
|
Removing intermediate container b2e615591051
|
|
---> 3daf92a30e51
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 07a0ad72615e
|
|
Removing intermediate container 07a0ad72615e
|
|
---> 06a282f3a8a9
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 4901d742808e
|
|
Removing intermediate container 4901d742808e
|
|
---> 4116bbb4dd28
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 4d581afd881c
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 999b405d22fb
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> d030bc61ad58
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in a0904e24e4ff
|
|
Removing intermediate container a0904e24e4ff
|
|
---> 8881fb87991c
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> f658d4c5c5ef
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in dd112076f1ad
|
|
Removing intermediate container dd112076f1ad
|
|
---> a77a7b007edb
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in f9d55fc8eda3
|
|
Removing intermediate container f9d55fc8eda3
|
|
---> 3fc630f990e4
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in e870b9088cde
|
|
Removing intermediate container e870b9088cde
|
|
---> 6cb9eafb7408
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 8c7ec1ffb465
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 94b4aadf9a05
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 94b4aadf9a05
|
|
---> fc9ad6c815dd
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 458b120f160b
|
|
Step 23/23 : USER docker
|
|
---> Running in 2e9b8ad779db
|
|
Removing intermediate container 2e9b8ad779db
|
|
---> 07341a6403a6
|
|
Successfully built 07341a6403a6
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
5f973a5e2524: Preparing
|
|
bf16cec31530: Preparing
|
|
49b946784c52: Preparing
|
|
985fde413278: Preparing
|
|
51f0cf7ca984: Preparing
|
|
b4853b5a1254: Preparing
|
|
cdb2ad7da563: Preparing
|
|
634f6ff134fd: Preparing
|
|
d595c4d51f62: Preparing
|
|
e352a942cbb0: Preparing
|
|
1442f11781f8: Preparing
|
|
d1071aa03c71: Preparing
|
|
3cd5e748b6c4: Preparing
|
|
41f55b4556fe: Preparing
|
|
418a1420f848: Preparing
|
|
d4ef6687ec24: Preparing
|
|
d26c000fe807: Preparing
|
|
634f6ff134fd: Waiting
|
|
2dc6d8f0563b: Preparing
|
|
9819c3e138d9: Preparing
|
|
6d4e984a00ed: Preparing
|
|
b4853b5a1254: Waiting
|
|
9f9cf4d793d9: Preparing
|
|
c4aae6fbd5ee: Preparing
|
|
d595c4d51f62: Waiting
|
|
244a3b1d1a28: Preparing
|
|
71cf7b156c8f: Preparing
|
|
e352a942cbb0: Waiting
|
|
36995f901c74: Preparing
|
|
1306a073c2e4: Preparing
|
|
1442f11781f8: Waiting
|
|
ae95b6e7214b: Preparing
|
|
1f2fe9d817e7: Preparing
|
|
9f1fded15526: Preparing
|
|
d1071aa03c71: Waiting
|
|
00c6a057b22e: Preparing
|
|
81aec7de5067: Preparing
|
|
3cd5e748b6c4: Waiting
|
|
99f60f3d6fb4: Preparing
|
|
2a22607e7f72: Preparing
|
|
3f3092edcc59: Preparing
|
|
41f55b4556fe: Waiting
|
|
2f265df07905: Preparing
|
|
4b0ba71d4d49: Preparing
|
|
94dd507fd40a: Preparing
|
|
02d9286ccd96: Preparing
|
|
65ba9c307279: Preparing
|
|
6a419e5480a4: Preparing
|
|
25c8a466d710: Preparing
|
|
9692e7e66d73: Preparing
|
|
21efa4eba8b1: Preparing
|
|
d59124498620: Preparing
|
|
57b292cb4083: Preparing
|
|
53049aef3d56: Preparing
|
|
863cb086b83b: Preparing
|
|
45bdc6f61aed: Preparing
|
|
5b486ace0136: Preparing
|
|
800b9253e15d: Preparing
|
|
7369e76a1f43: Preparing
|
|
3263ac556437: Preparing
|
|
3cf1f6b102af: Preparing
|
|
d80d9597e45a: Preparing
|
|
3e52419df646: Preparing
|
|
a3a7a724b578: Preparing
|
|
a1d2cea62dbf: Preparing
|
|
f3ce43e88437: Preparing
|
|
f7edc19a8d63: Preparing
|
|
90e959f492a3: Preparing
|
|
d06e118b4bc3: Preparing
|
|
94e39dbcfeda: Preparing
|
|
e42ebb5006fd: Preparing
|
|
22143a084401: Preparing
|
|
cd089230a130: Preparing
|
|
e22c66715f65: Preparing
|
|
c767402c44ea: Preparing
|
|
89427ad5ed30: Preparing
|
|
5c466de0a20e: Preparing
|
|
e4cb3af20151: Preparing
|
|
c65081711af8: Preparing
|
|
e08c5923be6b: Preparing
|
|
cdb2ad7da563: Waiting
|
|
33cfe45b0979: Preparing
|
|
257fefb13fac: Preparing
|
|
7ed8d156ec94: Preparing
|
|
242f180f3ae0: Preparing
|
|
f58ddfe44eef: Preparing
|
|
748c986f448a: Preparing
|
|
c0bd0a627503: Preparing
|
|
a55bad2deee0: Preparing
|
|
3bf38be5c1ad: Preparing
|
|
4f8b94a8ff52: Preparing
|
|
bac6f5cfa7b8: Preparing
|
|
1f3c311d6d61: Preparing
|
|
3baf8e7e389b: Preparing
|
|
7a1e164803e3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
863cb086b83b: Waiting
|
|
244a3b1d1a28: Waiting
|
|
418a1420f848: Waiting
|
|
45bdc6f61aed: Waiting
|
|
71cf7b156c8f: Waiting
|
|
d4ef6687ec24: Waiting
|
|
5b486ace0136: Waiting
|
|
800b9253e15d: Waiting
|
|
d26c000fe807: Waiting
|
|
36995f901c74: Waiting
|
|
7369e76a1f43: Waiting
|
|
2dc6d8f0563b: Waiting
|
|
1306a073c2e4: Waiting
|
|
3263ac556437: Waiting
|
|
9819c3e138d9: Waiting
|
|
ae95b6e7214b: Waiting
|
|
3cf1f6b102af: Waiting
|
|
1f2fe9d817e7: Waiting
|
|
6d4e984a00ed: Waiting
|
|
d80d9597e45a: Waiting
|
|
9f9cf4d793d9: Waiting
|
|
9f1fded15526: Waiting
|
|
3e52419df646: Waiting
|
|
c4aae6fbd5ee: Waiting
|
|
a3a7a724b578: Waiting
|
|
00c6a057b22e: Waiting
|
|
a1d2cea62dbf: Waiting
|
|
81aec7de5067: Waiting
|
|
f3ce43e88437: Waiting
|
|
99f60f3d6fb4: Waiting
|
|
f7edc19a8d63: Waiting
|
|
3f3092edcc59: Waiting
|
|
2a22607e7f72: Waiting
|
|
90e959f492a3: Waiting
|
|
02d9286ccd96: Waiting
|
|
2f265df07905: Waiting
|
|
d06e118b4bc3: Waiting
|
|
65ba9c307279: Waiting
|
|
25c8a466d710: Waiting
|
|
6a419e5480a4: Waiting
|
|
4b0ba71d4d49: Waiting
|
|
94e39dbcfeda: Waiting
|
|
9692e7e66d73: Waiting
|
|
e42ebb5006fd: Waiting
|
|
94dd507fd40a: Waiting
|
|
d59124498620: Waiting
|
|
21efa4eba8b1: Waiting
|
|
22143a084401: Waiting
|
|
53049aef3d56: Waiting
|
|
57b292cb4083: Waiting
|
|
cd089230a130: Waiting
|
|
e22c66715f65: Waiting
|
|
33cfe45b0979: Waiting
|
|
c767402c44ea: Waiting
|
|
257fefb13fac: Waiting
|
|
89427ad5ed30: Waiting
|
|
748c986f448a: Waiting
|
|
5c466de0a20e: Waiting
|
|
7ed8d156ec94: Waiting
|
|
e4cb3af20151: Waiting
|
|
c0bd0a627503: Waiting
|
|
242f180f3ae0: Waiting
|
|
c65081711af8: Waiting
|
|
f58ddfe44eef: Waiting
|
|
a55bad2deee0: Waiting
|
|
3bf38be5c1ad: Waiting
|
|
bac6f5cfa7b8: Waiting
|
|
3baf8e7e389b: Waiting
|
|
4f8b94a8ff52: Waiting
|
|
1f3c311d6d61: Waiting
|
|
b43408d5f11b: Waiting
|
|
23135df75b44: Waiting
|
|
fe6d8881187d: Waiting
|
|
7a1e164803e3: Waiting
|
|
51f0cf7ca984: Pushed
|
|
5f973a5e2524: Pushed
|
|
bf16cec31530: Pushed
|
|
985fde413278: Pushed
|
|
49b946784c52: Pushed
|
|
b4853b5a1254: Pushed
|
|
cdb2ad7da563: Pushed
|
|
634f6ff134fd: Pushed
|
|
d595c4d51f62: Pushed
|
|
e352a942cbb0: Pushed
|
|
1442f11781f8: Pushed
|
|
d1071aa03c71: Pushed
|
|
d4ef6687ec24: Pushed
|
|
3cd5e748b6c4: Pushed
|
|
d26c000fe807: Pushed
|
|
418a1420f848: Pushed
|
|
2dc6d8f0563b: Pushed
|
|
9819c3e138d9: Pushed
|
|
6d4e984a00ed: Pushed
|
|
c4aae6fbd5ee: Pushed
|
|
9f9cf4d793d9: Pushed
|
|
244a3b1d1a28: Pushed
|
|
71cf7b156c8f: Pushed
|
|
1306a073c2e4: Pushed
|
|
36995f901c74: Pushed
|
|
ae95b6e7214b: Pushed
|
|
9f1fded15526: Pushed
|
|
00c6a057b22e: Pushed
|
|
81aec7de5067: Pushed
|
|
2a22607e7f72: Pushed
|
|
99f60f3d6fb4: Pushed
|
|
3f3092edcc59: Pushed
|
|
4b0ba71d4d49: Pushed
|
|
2f265df07905: Pushed
|
|
94dd507fd40a: Pushed
|
|
02d9286ccd96: Pushed
|
|
65ba9c307279: Pushed
|
|
6a419e5480a4: Pushed
|
|
25c8a466d710: Pushed
|
|
21efa4eba8b1: Pushed
|
|
d59124498620: Pushed
|
|
57b292cb4083: Pushed
|
|
53049aef3d56: Pushed
|
|
863cb086b83b: Pushed
|
|
45bdc6f61aed: Pushed
|
|
5b486ace0136: Pushed
|
|
800b9253e15d: Pushed
|
|
7369e76a1f43: Pushed
|
|
3263ac556437: Pushed
|
|
3cf1f6b102af: Pushed
|
|
d80d9597e45a: Pushed
|
|
3e52419df646: Pushed
|
|
a1d2cea62dbf: Pushed
|
|
f3ce43e88437: Pushed
|
|
f7edc19a8d63: Pushed
|
|
1f2fe9d817e7: Pushed
|
|
90e959f492a3: Pushed
|
|
d06e118b4bc3: Pushed
|
|
41f55b4556fe: Pushed
|
|
94e39dbcfeda: Pushed
|
|
e42ebb5006fd: Pushed
|
|
22143a084401: Pushed
|
|
cd089230a130: Pushed
|
|
e22c66715f65: Pushed
|
|
89427ad5ed30: Pushed
|
|
5c466de0a20e: Pushed
|
|
c767402c44ea: Pushed
|
|
c65081711af8: Pushed
|
|
9692e7e66d73: Pushed
|
|
e08c5923be6b: Pushed
|
|
33cfe45b0979: Pushed
|
|
257fefb13fac: Pushed
|
|
242f180f3ae0: Pushed
|
|
7ed8d156ec94: Pushed
|
|
f58ddfe44eef: Pushed
|
|
748c986f448a: Pushed
|
|
c0bd0a627503: Pushed
|
|
a55bad2deee0: Pushed
|
|
3bf38be5c1ad: Pushed
|
|
4f8b94a8ff52: Pushed
|
|
bac6f5cfa7b8: Pushed
|
|
1f3c311d6d61: Pushed
|
|
3baf8e7e389b: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
a3a7a724b578: Pushed
|
|
e4cb3af20151: Pushed
|
|
b43408d5f11b: Pushed
|
|
7a1e164803e3: Pushed
|
|
latest: digest: sha256:bacf8dd789156dbb899030e65eca603e6cce2a0bc54fbb386e9c550e4bf2717e size: 18795
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing hybrid_worker_2 ...
|
|
Removing hybrid_worker_1 ...
|
|
Removing hybrid_master_1 ...
|
|
Removing hybrid_registry_1 ...
|
|
[2A[2K
|
|
Removing hybrid_master_1 ... [32mdone[0m
|
|
[2B[4A[2K
|
|
Removing hybrid_worker_2 ... [32mdone[0m
|
|
[4B[3A[2K
|
|
Removing hybrid_worker_1 ... [32mdone[0m
|
|
[3B[1A[2K
|
|
Removing hybrid_registry_1 ... [32mdone[0m
|
|
[1BRemoving network hybrid_default
|
|
Removing network hybrid_net
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 126kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 07341a6403a6
|
|
Step 2/23 : USER root
|
|
---> Running in 93ad3e1bee30
|
|
Removing intermediate container 93ad3e1bee30
|
|
---> 2d2fedcb29d5
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in e89b9ec62aa1
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:5 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 13s (1699 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container e89b9ec62aa1
|
|
---> 718b516698e6
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 913cd71be097
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 913cd71be097
|
|
---> 564c5463daa3
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in eb95faa5471f
|
|
Removing intermediate container eb95faa5471f
|
|
---> 46e9dd50f086
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in c8c6a501082b
|
|
Removing intermediate container c8c6a501082b
|
|
---> 7b38ff2ff963
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in f28c91b9bf73
|
|
Removing intermediate container f28c91b9bf73
|
|
---> dfda71dca706
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 61d8409c029c
|
|
Removing intermediate container 61d8409c029c
|
|
---> 5ca1eb260be2
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in c05535994d0f
|
|
Removing intermediate container c05535994d0f
|
|
---> 98b911ff7c09
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in bf182f2116d8
|
|
Removing intermediate container bf182f2116d8
|
|
---> fa8f4a5f52b2
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 8a4b69b57d41
|
|
Removing intermediate container 8a4b69b57d41
|
|
---> f0639ea96fc0
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> cc3a958ebdc5
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> ebf7b601083c
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 459508e49fe6
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 06164939bd2b
|
|
Removing intermediate container 06164939bd2b
|
|
---> 2b67afe4ac04
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 42bef276bcd4
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 0bd826840b1b
|
|
Removing intermediate container 0bd826840b1b
|
|
---> 0e155834b4dc
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 096c49449b4f
|
|
Removing intermediate container 096c49449b4f
|
|
---> 22ef21a1e87c
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in d1550f07227b
|
|
Removing intermediate container d1550f07227b
|
|
---> 48960f24b4c8
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> bc71dffa74db
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 9ab0fd2e59a7
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 9ab0fd2e59a7
|
|
---> 96db95406362
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 4e83871eb6ed
|
|
Step 23/23 : USER docker
|
|
---> Running in 38b8a7807d27
|
|
Removing intermediate container 38b8a7807d27
|
|
---> 0d52aa64d7c6
|
|
Successfully built 0d52aa64d7c6
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
0296b09dee8d: Preparing
|
|
925da60a8a8f: Preparing
|
|
354031b7a33f: Preparing
|
|
6866272cef85: Preparing
|
|
0cc409d23aea: Preparing
|
|
79e071ddadfb: Preparing
|
|
6b625a06eaec: Preparing
|
|
f799f39eeeae: Preparing
|
|
46603e2a1031: Preparing
|
|
2305a704f992: Preparing
|
|
7c64a5f9ad01: Preparing
|
|
156cd4a54131: Preparing
|
|
9233ef7b059b: Preparing
|
|
56ce4e93b16b: Preparing
|
|
5f973a5e2524: Preparing
|
|
bf16cec31530: Preparing
|
|
49b946784c52: Preparing
|
|
985fde413278: Preparing
|
|
51f0cf7ca984: Preparing
|
|
b4853b5a1254: Preparing
|
|
cdb2ad7da563: Preparing
|
|
634f6ff134fd: Preparing
|
|
d595c4d51f62: Preparing
|
|
e352a942cbb0: Preparing
|
|
1442f11781f8: Preparing
|
|
d1071aa03c71: Preparing
|
|
3cd5e748b6c4: Preparing
|
|
41f55b4556fe: Preparing
|
|
418a1420f848: Preparing
|
|
d4ef6687ec24: Preparing
|
|
d26c000fe807: Preparing
|
|
2dc6d8f0563b: Preparing
|
|
9819c3e138d9: Preparing
|
|
6d4e984a00ed: Preparing
|
|
9f9cf4d793d9: Preparing
|
|
c4aae6fbd5ee: Preparing
|
|
244a3b1d1a28: Preparing
|
|
71cf7b156c8f: Preparing
|
|
36995f901c74: Preparing
|
|
1306a073c2e4: Preparing
|
|
ae95b6e7214b: Preparing
|
|
1f2fe9d817e7: Preparing
|
|
9f1fded15526: Preparing
|
|
00c6a057b22e: Preparing
|
|
81aec7de5067: Preparing
|
|
99f60f3d6fb4: Preparing
|
|
2a22607e7f72: Preparing
|
|
3f3092edcc59: Preparing
|
|
2f265df07905: Preparing
|
|
4b0ba71d4d49: Preparing
|
|
94dd507fd40a: Preparing
|
|
02d9286ccd96: Preparing
|
|
65ba9c307279: Preparing
|
|
6a419e5480a4: Preparing
|
|
25c8a466d710: Preparing
|
|
9692e7e66d73: Preparing
|
|
21efa4eba8b1: Preparing
|
|
d59124498620: Preparing
|
|
57b292cb4083: Preparing
|
|
53049aef3d56: Preparing
|
|
863cb086b83b: Preparing
|
|
45bdc6f61aed: Preparing
|
|
5b486ace0136: Preparing
|
|
800b9253e15d: Preparing
|
|
7369e76a1f43: Preparing
|
|
3263ac556437: Preparing
|
|
3cf1f6b102af: Preparing
|
|
d80d9597e45a: Preparing
|
|
3e52419df646: Preparing
|
|
a3a7a724b578: Preparing
|
|
a1d2cea62dbf: Preparing
|
|
f3ce43e88437: Preparing
|
|
f7edc19a8d63: Preparing
|
|
90e959f492a3: Preparing
|
|
d06e118b4bc3: Preparing
|
|
94e39dbcfeda: Preparing
|
|
e42ebb5006fd: Preparing
|
|
22143a084401: Preparing
|
|
cd089230a130: Preparing
|
|
e22c66715f65: Preparing
|
|
c767402c44ea: Preparing
|
|
89427ad5ed30: Preparing
|
|
5c466de0a20e: Preparing
|
|
e4cb3af20151: Preparing
|
|
c65081711af8: Preparing
|
|
e08c5923be6b: Preparing
|
|
33cfe45b0979: Preparing
|
|
257fefb13fac: Preparing
|
|
7ed8d156ec94: Preparing
|
|
242f180f3ae0: Preparing
|
|
f58ddfe44eef: Preparing
|
|
748c986f448a: Preparing
|
|
c0bd0a627503: Preparing
|
|
a55bad2deee0: Preparing
|
|
3bf38be5c1ad: Preparing
|
|
4f8b94a8ff52: Preparing
|
|
bac6f5cfa7b8: Preparing
|
|
1f3c311d6d61: Preparing
|
|
3baf8e7e389b: Preparing
|
|
7a1e164803e3: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
a3a7a724b578: Waiting
|
|
a1d2cea62dbf: Waiting
|
|
f3ce43e88437: Waiting
|
|
f7edc19a8d63: Waiting
|
|
90e959f492a3: Waiting
|
|
d06e118b4bc3: Waiting
|
|
94e39dbcfeda: Waiting
|
|
e42ebb5006fd: Waiting
|
|
22143a084401: Waiting
|
|
cd089230a130: Waiting
|
|
e22c66715f65: Waiting
|
|
c767402c44ea: Waiting
|
|
89427ad5ed30: Waiting
|
|
5c466de0a20e: Waiting
|
|
e4cb3af20151: Waiting
|
|
c65081711af8: Waiting
|
|
e08c5923be6b: Waiting
|
|
33cfe45b0979: Waiting
|
|
257fefb13fac: Waiting
|
|
7ed8d156ec94: Waiting
|
|
242f180f3ae0: Waiting
|
|
f58ddfe44eef: Waiting
|
|
748c986f448a: Waiting
|
|
c0bd0a627503: Waiting
|
|
a55bad2deee0: Waiting
|
|
3bf38be5c1ad: Waiting
|
|
4f8b94a8ff52: Waiting
|
|
bac6f5cfa7b8: Waiting
|
|
1f3c311d6d61: Waiting
|
|
3baf8e7e389b: Waiting
|
|
7a1e164803e3: Waiting
|
|
fe6d8881187d: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
79e071ddadfb: Waiting
|
|
6b625a06eaec: Waiting
|
|
d595c4d51f62: Waiting
|
|
f799f39eeeae: Waiting
|
|
46603e2a1031: Waiting
|
|
2305a704f992: Waiting
|
|
7c64a5f9ad01: Waiting
|
|
156cd4a54131: Waiting
|
|
9233ef7b059b: Waiting
|
|
56ce4e93b16b: Waiting
|
|
5f973a5e2524: Waiting
|
|
bf16cec31530: Waiting
|
|
49b946784c52: Waiting
|
|
985fde413278: Waiting
|
|
51f0cf7ca984: Waiting
|
|
b4853b5a1254: Waiting
|
|
cdb2ad7da563: Waiting
|
|
634f6ff134fd: Waiting
|
|
9f9cf4d793d9: Waiting
|
|
c4aae6fbd5ee: Waiting
|
|
244a3b1d1a28: Waiting
|
|
71cf7b156c8f: Waiting
|
|
36995f901c74: Waiting
|
|
1306a073c2e4: Waiting
|
|
ae95b6e7214b: Waiting
|
|
1f2fe9d817e7: Waiting
|
|
9f1fded15526: Waiting
|
|
00c6a057b22e: Waiting
|
|
81aec7de5067: Waiting
|
|
99f60f3d6fb4: Waiting
|
|
2a22607e7f72: Waiting
|
|
3f3092edcc59: Waiting
|
|
2f265df07905: Waiting
|
|
4b0ba71d4d49: Waiting
|
|
94dd507fd40a: Waiting
|
|
02d9286ccd96: Waiting
|
|
65ba9c307279: Waiting
|
|
6a419e5480a4: Waiting
|
|
25c8a466d710: Waiting
|
|
9692e7e66d73: Waiting
|
|
21efa4eba8b1: Waiting
|
|
d59124498620: Waiting
|
|
57b292cb4083: Waiting
|
|
53049aef3d56: Waiting
|
|
863cb086b83b: Waiting
|
|
45bdc6f61aed: Waiting
|
|
5b486ace0136: Waiting
|
|
e352a942cbb0: Waiting
|
|
1442f11781f8: Waiting
|
|
800b9253e15d: Waiting
|
|
d1071aa03c71: Waiting
|
|
7369e76a1f43: Waiting
|
|
3cd5e748b6c4: Waiting
|
|
41f55b4556fe: Waiting
|
|
3263ac556437: Waiting
|
|
418a1420f848: Waiting
|
|
3cf1f6b102af: Waiting
|
|
d4ef6687ec24: Waiting
|
|
d80d9597e45a: Waiting
|
|
3e52419df646: Waiting
|
|
d26c000fe807: Waiting
|
|
2dc6d8f0563b: Waiting
|
|
9819c3e138d9: Waiting
|
|
6d4e984a00ed: Waiting
|
|
354031b7a33f: Pushed
|
|
6866272cef85: Pushed
|
|
925da60a8a8f: Pushed
|
|
0296b09dee8d: Pushed
|
|
0cc409d23aea: Pushed
|
|
79e071ddadfb: Pushed
|
|
f799f39eeeae: Pushed
|
|
6b625a06eaec: Pushed
|
|
46603e2a1031: Pushed
|
|
2305a704f992: Pushed
|
|
7c64a5f9ad01: Pushed
|
|
156cd4a54131: Pushed
|
|
9233ef7b059b: Pushed
|
|
5f973a5e2524: Pushed
|
|
bf16cec31530: Pushed
|
|
49b946784c52: Pushed
|
|
985fde413278: Pushed
|
|
51f0cf7ca984: Pushed
|
|
b4853b5a1254: Pushed
|
|
cdb2ad7da563: Pushed
|
|
634f6ff134fd: Pushed
|
|
e352a942cbb0: Pushed
|
|
d595c4d51f62: Pushed
|
|
3cd5e748b6c4: Pushed
|
|
1442f11781f8: Pushed
|
|
d1071aa03c71: Pushed
|
|
d4ef6687ec24: Pushed
|
|
d26c000fe807: Pushed
|
|
2dc6d8f0563b: Pushed
|
|
418a1420f848: Pushed
|
|
9819c3e138d9: Pushed
|
|
9f9cf4d793d9: Pushed
|
|
6d4e984a00ed: Pushed
|
|
c4aae6fbd5ee: Pushed
|
|
71cf7b156c8f: Pushed
|
|
244a3b1d1a28: Pushed
|
|
36995f901c74: Pushed
|
|
1306a073c2e4: Pushed
|
|
ae95b6e7214b: Pushed
|
|
9f1fded15526: Pushed
|
|
00c6a057b22e: Pushed
|
|
81aec7de5067: Pushed
|
|
99f60f3d6fb4: Pushed
|
|
2a22607e7f72: Pushed
|
|
3f3092edcc59: Pushed
|
|
2f265df07905: Pushed
|
|
4b0ba71d4d49: Pushed
|
|
94dd507fd40a: Pushed
|
|
02d9286ccd96: Pushed
|
|
65ba9c307279: Pushed
|
|
25c8a466d710: Pushed
|
|
6a419e5480a4: Pushed
|
|
21efa4eba8b1: Pushed
|
|
d59124498620: Pushed
|
|
57b292cb4083: Pushed
|
|
53049aef3d56: Pushed
|
|
863cb086b83b: Pushed
|
|
45bdc6f61aed: Pushed
|
|
5b486ace0136: Pushed
|
|
800b9253e15d: Pushed
|
|
7369e76a1f43: Pushed
|
|
3263ac556437: Pushed
|
|
3cf1f6b102af: Pushed
|
|
d80d9597e45a: Pushed
|
|
3e52419df646: Pushed
|
|
56ce4e93b16b: Pushed
|
|
a1d2cea62dbf: Pushed
|
|
f3ce43e88437: Pushed
|
|
f7edc19a8d63: Pushed
|
|
90e959f492a3: Pushed
|
|
d06e118b4bc3: Pushed
|
|
41f55b4556fe: Pushed
|
|
e42ebb5006fd: Pushed
|
|
94e39dbcfeda: Pushed
|
|
cd089230a130: Pushed
|
|
22143a084401: Pushed
|
|
c767402c44ea: Pushed
|
|
e22c66715f65: Pushed
|
|
89427ad5ed30: Pushed
|
|
5c466de0a20e: Pushed
|
|
1f2fe9d817e7: Pushed
|
|
c65081711af8: Pushed
|
|
e08c5923be6b: Pushed
|
|
33cfe45b0979: Pushed
|
|
257fefb13fac: Pushed
|
|
7ed8d156ec94: Pushed
|
|
f58ddfe44eef: Pushed
|
|
242f180f3ae0: Pushed
|
|
9692e7e66d73: Pushed
|
|
748c986f448a: Pushed
|
|
c0bd0a627503: Pushed
|
|
a55bad2deee0: Pushed
|
|
3bf38be5c1ad: Pushed
|
|
4f8b94a8ff52: Pushed
|
|
bac6f5cfa7b8: Pushed
|
|
1f3c311d6d61: Pushed
|
|
3baf8e7e389b: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
a3a7a724b578: Pushed
|
|
e4cb3af20151: Pushed
|
|
b43408d5f11b: Pushed
|
|
7a1e164803e3: Pushed
|
|
latest: digest: sha256:61d33e6fd67c110868edd71831b1bf7e92478261d68e295cc5bb9584066c4d78 size: 21701
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 128.5kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 0d52aa64d7c6
|
|
Step 2/23 : USER root
|
|
---> Running in c67507dccee5
|
|
Removing intermediate container c67507dccee5
|
|
---> e36affd96846
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 7ac165672821
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 12s (1858 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 7ac165672821
|
|
---> 4f72b5e44ba7
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 083abcbb4c62
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 083abcbb4c62
|
|
---> 47c91fd260eb
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 9041d7b495a0
|
|
Removing intermediate container 9041d7b495a0
|
|
---> f0976543dae8
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 7bc53073edd0
|
|
Removing intermediate container 7bc53073edd0
|
|
---> 4812976f03f7
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in fa176b510d46
|
|
Removing intermediate container fa176b510d46
|
|
---> 593494413a05
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 4d64a911e0d9
|
|
Removing intermediate container 4d64a911e0d9
|
|
---> ed5b05ecd8d1
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 6e7a866e8fe5
|
|
Removing intermediate container 6e7a866e8fe5
|
|
---> 089c5ef7062e
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 58bcd3fc0684
|
|
Removing intermediate container 58bcd3fc0684
|
|
---> 10519108f052
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in a3be6d92472d
|
|
Removing intermediate container a3be6d92472d
|
|
---> 900e0404aed9
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 0cd3a02fb543
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> b87b64b032fc
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 3216dce5dbf6
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 772420719d3c
|
|
Removing intermediate container 772420719d3c
|
|
---> 648c5c9647b0
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> d498e5c93b09
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 135e4d7f97ca
|
|
Removing intermediate container 135e4d7f97ca
|
|
---> dec4534c8967
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 393fe797d0c2
|
|
Removing intermediate container 393fe797d0c2
|
|
---> bdbf5cfe4a3e
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in a82eb8e66846
|
|
Removing intermediate container a82eb8e66846
|
|
---> 0772548732de
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> c116a3cce433
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in e4f12ab6d5ed
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container e4f12ab6d5ed
|
|
---> ea40363cce52
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 4c9a4393e08b
|
|
Step 23/23 : USER docker
|
|
---> Running in ab0c1522337a
|
|
Removing intermediate container ab0c1522337a
|
|
---> d926e9f4903e
|
|
Successfully built d926e9f4903e
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
82c6c92c2b39: Preparing
|
|
2505cfb9a60b: Preparing
|
|
6565cc2b5382: Preparing
|
|
bcbc9c02e88d: Preparing
|
|
bb0ebce2d919: Preparing
|
|
8d89c56f94d2: Preparing
|
|
9230d435cb1a: Preparing
|
|
d54ec8279678: Preparing
|
|
4bf7928d28f4: Preparing
|
|
ddbb3f83999e: Preparing
|
|
32b1667c0804: Preparing
|
|
31fc06cb5845: Preparing
|
|
9fe6c6ac3aba: Preparing
|
|
44a62135d158: Preparing
|
|
0296b09dee8d: Preparing
|
|
925da60a8a8f: Preparing
|
|
354031b7a33f: Preparing
|
|
6866272cef85: Preparing
|
|
0cc409d23aea: Preparing
|
|
79e071ddadfb: Preparing
|
|
6b625a06eaec: Preparing
|
|
f799f39eeeae: Preparing
|
|
46603e2a1031: Preparing
|
|
2305a704f992: Preparing
|
|
7c64a5f9ad01: Preparing
|
|
156cd4a54131: Preparing
|
|
9233ef7b059b: Preparing
|
|
56ce4e93b16b: Preparing
|
|
5f973a5e2524: Preparing
|
|
bf16cec31530: Preparing
|
|
49b946784c52: Preparing
|
|
985fde413278: Preparing
|
|
51f0cf7ca984: Preparing
|
|
b4853b5a1254: Preparing
|
|
cdb2ad7da563: Preparing
|
|
634f6ff134fd: Preparing
|
|
d595c4d51f62: Preparing
|
|
e352a942cbb0: Preparing
|
|
1442f11781f8: Preparing
|
|
d1071aa03c71: Preparing
|
|
3cd5e748b6c4: Preparing
|
|
41f55b4556fe: Preparing
|
|
418a1420f848: Preparing
|
|
d4ef6687ec24: Preparing
|
|
d26c000fe807: Preparing
|
|
2dc6d8f0563b: Preparing
|
|
9819c3e138d9: Preparing
|
|
6d4e984a00ed: Preparing
|
|
9f9cf4d793d9: Preparing
|
|
c4aae6fbd5ee: Preparing
|
|
244a3b1d1a28: Preparing
|
|
71cf7b156c8f: Preparing
|
|
36995f901c74: Preparing
|
|
1306a073c2e4: Preparing
|
|
ae95b6e7214b: Preparing
|
|
1f2fe9d817e7: Preparing
|
|
9f1fded15526: Preparing
|
|
00c6a057b22e: Preparing
|
|
81aec7de5067: Preparing
|
|
99f60f3d6fb4: Preparing
|
|
2a22607e7f72: Preparing
|
|
3f3092edcc59: Preparing
|
|
2f265df07905: Preparing
|
|
4b0ba71d4d49: Preparing
|
|
94dd507fd40a: Preparing
|
|
02d9286ccd96: Preparing
|
|
65ba9c307279: Preparing
|
|
6a419e5480a4: Preparing
|
|
25c8a466d710: Preparing
|
|
9692e7e66d73: Preparing
|
|
21efa4eba8b1: Preparing
|
|
d59124498620: Preparing
|
|
57b292cb4083: Preparing
|
|
53049aef3d56: Preparing
|
|
863cb086b83b: Preparing
|
|
4bf7928d28f4: Waiting
|
|
45bdc6f61aed: Preparing
|
|
5b486ace0136: Preparing
|
|
800b9253e15d: Preparing
|
|
ddbb3f83999e: Waiting
|
|
7369e76a1f43: Preparing
|
|
32b1667c0804: Waiting
|
|
3263ac556437: Preparing
|
|
3cf1f6b102af: Preparing
|
|
d80d9597e45a: Preparing
|
|
31fc06cb5845: Waiting
|
|
3e52419df646: Preparing
|
|
a3a7a724b578: Preparing
|
|
a1d2cea62dbf: Preparing
|
|
f3ce43e88437: Preparing
|
|
f7edc19a8d63: Preparing
|
|
9fe6c6ac3aba: Waiting
|
|
90e959f492a3: Preparing
|
|
d06e118b4bc3: Preparing
|
|
44a62135d158: Waiting
|
|
94e39dbcfeda: Preparing
|
|
e42ebb5006fd: Preparing
|
|
22143a084401: Preparing
|
|
cd089230a130: Preparing
|
|
0296b09dee8d: Waiting
|
|
e22c66715f65: Preparing
|
|
c767402c44ea: Preparing
|
|
89427ad5ed30: Preparing
|
|
5c466de0a20e: Preparing
|
|
e4cb3af20151: Preparing
|
|
925da60a8a8f: Waiting
|
|
c65081711af8: Preparing
|
|
e08c5923be6b: Preparing
|
|
33cfe45b0979: Preparing
|
|
257fefb13fac: Preparing
|
|
354031b7a33f: Waiting
|
|
7ed8d156ec94: Preparing
|
|
242f180f3ae0: Preparing
|
|
f58ddfe44eef: Preparing
|
|
6866272cef85: Waiting
|
|
748c986f448a: Preparing
|
|
c0bd0a627503: Preparing
|
|
0cc409d23aea: Waiting
|
|
a55bad2deee0: Preparing
|
|
3bf38be5c1ad: Preparing
|
|
79e071ddadfb: Waiting
|
|
4f8b94a8ff52: Preparing
|
|
bac6f5cfa7b8: Preparing
|
|
1f3c311d6d61: Preparing
|
|
6b625a06eaec: Waiting
|
|
3baf8e7e389b: Preparing
|
|
7a1e164803e3: Preparing
|
|
f799f39eeeae: Waiting
|
|
fe6d8881187d: Preparing
|
|
7369e76a1f43: Waiting
|
|
2305a704f992: Waiting
|
|
3263ac556437: Waiting
|
|
3cf1f6b102af: Waiting
|
|
7c64a5f9ad01: Waiting
|
|
d80d9597e45a: Waiting
|
|
3e52419df646: Waiting
|
|
156cd4a54131: Waiting
|
|
8d89c56f94d2: Waiting
|
|
a3a7a724b578: Waiting
|
|
9230d435cb1a: Waiting
|
|
9233ef7b059b: Waiting
|
|
d54ec8279678: Waiting
|
|
e352a942cbb0: Waiting
|
|
1442f11781f8: Waiting
|
|
d1071aa03c71: Waiting
|
|
3cd5e748b6c4: Waiting
|
|
41f55b4556fe: Waiting
|
|
418a1420f848: Waiting
|
|
d4ef6687ec24: Waiting
|
|
d26c000fe807: Waiting
|
|
2dc6d8f0563b: Waiting
|
|
9819c3e138d9: Waiting
|
|
6d4e984a00ed: Waiting
|
|
9f9cf4d793d9: Waiting
|
|
c4aae6fbd5ee: Waiting
|
|
244a3b1d1a28: Waiting
|
|
71cf7b156c8f: Waiting
|
|
36995f901c74: Waiting
|
|
1306a073c2e4: Waiting
|
|
ae95b6e7214b: Waiting
|
|
1f2fe9d817e7: Waiting
|
|
9f1fded15526: Waiting
|
|
00c6a057b22e: Waiting
|
|
81aec7de5067: Waiting
|
|
99f60f3d6fb4: Waiting
|
|
2a22607e7f72: Waiting
|
|
3f3092edcc59: Waiting
|
|
2f265df07905: Waiting
|
|
4b0ba71d4d49: Waiting
|
|
94dd507fd40a: Waiting
|
|
02d9286ccd96: Waiting
|
|
65ba9c307279: Waiting
|
|
6a419e5480a4: Waiting
|
|
25c8a466d710: Waiting
|
|
9692e7e66d73: Waiting
|
|
21efa4eba8b1: Waiting
|
|
d59124498620: Waiting
|
|
57b292cb4083: Waiting
|
|
56ce4e93b16b: Waiting
|
|
5f973a5e2524: Waiting
|
|
53049aef3d56: Waiting
|
|
863cb086b83b: Waiting
|
|
bf16cec31530: Waiting
|
|
45bdc6f61aed: Waiting
|
|
49b946784c52: Waiting
|
|
5b486ace0136: Waiting
|
|
985fde413278: Waiting
|
|
800b9253e15d: Waiting
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
51f0cf7ca984: Waiting
|
|
b4853b5a1254: Waiting
|
|
f3ce43e88437: Waiting
|
|
cdb2ad7da563: Waiting
|
|
f7edc19a8d63: Waiting
|
|
634f6ff134fd: Waiting
|
|
90e959f492a3: Waiting
|
|
d595c4d51f62: Waiting
|
|
d06e118b4bc3: Waiting
|
|
fe6d8881187d: Waiting
|
|
94e39dbcfeda: Waiting
|
|
e42ebb5006fd: Waiting
|
|
22143a084401: Waiting
|
|
cd089230a130: Waiting
|
|
e22c66715f65: Waiting
|
|
c767402c44ea: Waiting
|
|
89427ad5ed30: Waiting
|
|
5c466de0a20e: Waiting
|
|
e4cb3af20151: Waiting
|
|
c65081711af8: Waiting
|
|
e08c5923be6b: Waiting
|
|
23135df75b44: Waiting
|
|
33cfe45b0979: Waiting
|
|
257fefb13fac: Waiting
|
|
7ed8d156ec94: Waiting
|
|
242f180f3ae0: Waiting
|
|
f58ddfe44eef: Waiting
|
|
748c986f448a: Waiting
|
|
c0bd0a627503: Waiting
|
|
a55bad2deee0: Waiting
|
|
3bf38be5c1ad: Waiting
|
|
4f8b94a8ff52: Waiting
|
|
bac6f5cfa7b8: Waiting
|
|
1f3c311d6d61: Waiting
|
|
3baf8e7e389b: Waiting
|
|
7a1e164803e3: Waiting
|
|
b43408d5f11b: Waiting
|
|
a1d2cea62dbf: Waiting
|
|
2505cfb9a60b: Pushed
|
|
bb0ebce2d919: Pushed
|
|
6565cc2b5382: Pushed
|
|
82c6c92c2b39: Pushed
|
|
bcbc9c02e88d: Pushed
|
|
8d89c56f94d2: Pushed
|
|
9230d435cb1a: Pushed
|
|
4bf7928d28f4: Pushed
|
|
ddbb3f83999e: Pushed
|
|
d54ec8279678: Pushed
|
|
32b1667c0804: Pushed
|
|
31fc06cb5845: Pushed
|
|
0296b09dee8d: Pushed
|
|
9fe6c6ac3aba: Pushed
|
|
925da60a8a8f: Pushed
|
|
354031b7a33f: Pushed
|
|
6866272cef85: Pushed
|
|
0cc409d23aea: Pushed
|
|
79e071ddadfb: Pushed
|
|
6b625a06eaec: Pushed
|
|
f799f39eeeae: Pushed
|
|
46603e2a1031: Pushed
|
|
2305a704f992: Pushed
|
|
7c64a5f9ad01: Pushed
|
|
156cd4a54131: Pushed
|
|
9233ef7b059b: Pushed
|
|
49b946784c52: Pushed
|
|
5f973a5e2524: Pushed
|
|
bf16cec31530: Pushed
|
|
985fde413278: Pushed
|
|
b4853b5a1254: Pushed
|
|
51f0cf7ca984: Pushed
|
|
d595c4d51f62: Pushed
|
|
cdb2ad7da563: Pushed
|
|
634f6ff134fd: Pushed
|
|
1442f11781f8: Pushed
|
|
d1071aa03c71: Pushed
|
|
e352a942cbb0: Pushed
|
|
418a1420f848: Pushed
|
|
3cd5e748b6c4: Pushed
|
|
d4ef6687ec24: Pushed
|
|
d26c000fe807: Pushed
|
|
2dc6d8f0563b: Pushed
|
|
9819c3e138d9: Pushed
|
|
6d4e984a00ed: Pushed
|
|
9f9cf4d793d9: Pushed
|
|
c4aae6fbd5ee: Pushed
|
|
244a3b1d1a28: Pushed
|
|
71cf7b156c8f: Pushed
|
|
36995f901c74: Pushed
|
|
1306a073c2e4: Pushed
|
|
ae95b6e7214b: Pushed
|
|
9f1fded15526: Pushed
|
|
00c6a057b22e: Pushed
|
|
81aec7de5067: Pushed
|
|
99f60f3d6fb4: Pushed
|
|
2a22607e7f72: Pushed
|
|
3f3092edcc59: Pushed
|
|
2f265df07905: Pushed
|
|
4b0ba71d4d49: Pushed
|
|
94dd507fd40a: Pushed
|
|
02d9286ccd96: Pushed
|
|
65ba9c307279: Pushed
|
|
6a419e5480a4: Pushed
|
|
25c8a466d710: Pushed
|
|
44a62135d158: Pushed
|
|
21efa4eba8b1: Pushed
|
|
56ce4e93b16b: Pushed
|
|
d59124498620: Pushed
|
|
57b292cb4083: Pushed
|
|
53049aef3d56: Pushed
|
|
863cb086b83b: Pushed
|
|
45bdc6f61aed: Pushed
|
|
5b486ace0136: Pushed
|
|
800b9253e15d: Pushed
|
|
7369e76a1f43: Pushed
|
|
3263ac556437: Pushed
|
|
3cf1f6b102af: Pushed
|
|
d80d9597e45a: Pushed
|
|
3e52419df646: Pushed
|
|
a1d2cea62dbf: Pushed
|
|
f3ce43e88437: Pushed
|
|
f7edc19a8d63: Pushed
|
|
90e959f492a3: Pushed
|
|
d06e118b4bc3: Pushed
|
|
41f55b4556fe: Pushed
|
|
94e39dbcfeda: Pushed
|
|
e42ebb5006fd: Pushed
|
|
22143a084401: Pushed
|
|
cd089230a130: Pushed
|
|
e22c66715f65: Pushed
|
|
c767402c44ea: Pushed
|
|
89427ad5ed30: Pushed
|
|
5c466de0a20e: Pushed
|
|
1f2fe9d817e7: Pushed
|
|
c65081711af8: Pushed
|
|
e08c5923be6b: Pushed
|
|
33cfe45b0979: Pushed
|
|
257fefb13fac: Pushed
|
|
7ed8d156ec94: Pushed
|
|
242f180f3ae0: Pushed
|
|
f58ddfe44eef: Pushed
|
|
748c986f448a: Pushed
|
|
c0bd0a627503: Pushed
|
|
a55bad2deee0: Pushed
|
|
3bf38be5c1ad: Pushed
|
|
4f8b94a8ff52: Pushed
|
|
bac6f5cfa7b8: Pushed
|
|
1f3c311d6d61: Pushed
|
|
3baf8e7e389b: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
9692e7e66d73: Pushed
|
|
a3a7a724b578: Pushed
|
|
e4cb3af20151: Pushed
|
|
b43408d5f11b: Pushed
|
|
7a1e164803e3: Pushed
|
|
latest: digest: sha256:05ac141ae111f9342a64fc4a78577b99fb449f0d6f9c6ef90c18f32195ed29de size: 24607
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 131.1kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> d926e9f4903e
|
|
Step 2/23 : USER root
|
|
---> Running in f4d4ec8b3341
|
|
Removing intermediate container f4d4ec8b3341
|
|
---> b4f600e4b917
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 998f7e00041a
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:6 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 10s (2146 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 998f7e00041a
|
|
---> 66cb2f341fa2
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in ce83bd952fdc
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container ce83bd952fdc
|
|
---> 148930afa70d
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 370073968ba2
|
|
Removing intermediate container 370073968ba2
|
|
---> 7892205075ec
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 1fb6fa6c0762
|
|
Removing intermediate container 1fb6fa6c0762
|
|
---> 28e9cd211d5b
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in b04f302e471c
|
|
Removing intermediate container b04f302e471c
|
|
---> 202b50dc20df
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 384e0b90813a
|
|
Removing intermediate container 384e0b90813a
|
|
---> 981175693694
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 40532cb72961
|
|
Removing intermediate container 40532cb72961
|
|
---> 65564c0c8cf8
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in ef6ad959e21b
|
|
Removing intermediate container ef6ad959e21b
|
|
---> 58f1e71370cd
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 8c508a4182e4
|
|
Removing intermediate container 8c508a4182e4
|
|
---> f219b0b86a2b
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 997b61df1a3a
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
max depth exceeded
|
|
|
|
>>> Load Origin
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 106.5kB
|
|
|
|
Step 1/23 : FROM ubuntu:18.04
|
|
18.04: Pulling from library/ubuntu
|
|
f22ccc0b8772: Pulling fs layer
|
|
3cf8fb62ba5f: Pulling fs layer
|
|
e80c964ece6a: Pulling fs layer
|
|
e80c964ece6a: Verifying Checksum
|
|
e80c964ece6a: Download complete
|
|
3cf8fb62ba5f: Download complete
|
|
f22ccc0b8772: Verifying Checksum
|
|
f22ccc0b8772: Download complete
|
|
f22ccc0b8772: Pull complete
|
|
3cf8fb62ba5f: Pull complete
|
|
e80c964ece6a: Pull complete
|
|
Digest: sha256:fd25e706f3dea2a5ff705dbc3353cf37f08307798f3e360a13e9385840f73fb3
|
|
Status: Downloaded newer image for ubuntu:18.04
|
|
---> 2c047404e52d
|
|
Step 2/23 : USER root
|
|
---> Running in d9d67ff24fc2
|
|
Removing intermediate container d9d67ff24fc2
|
|
---> dc978fa14bd1
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 1e62cf9f6a76
|
|
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:3 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:5 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 12s (1783 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
The following additional packages will be installed:
|
|
bc bind9-host iproute2 libasn1-8-heimdal libbind9-160 libblas3 libbsd0
|
|
libcap2 libcurl4 libdns1100 libedit2 libelf1 libexpat1 libgdbm-compat4
|
|
libgdbm5 libgeoip1 libgpm2 libgssapi-krb5-2 libgssapi3-heimdal
|
|
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
|
|
libhx509-5-heimdal libicu60 libidn11 libip4tc0 libip6tc0 libiptc0 libirs160
|
|
libisc169 libisccc160 libisccfg160 libjson-c3 libk5crypto3 libkeyutils1
|
|
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common
|
|
liblinear3 liblua5.3-0 liblwres160 libmnl0 libmpdec2 libnetfilter-conntrack3
|
|
libnfnetlink0 libnghttp2-14 libpcap0.8 libperl5.26 libpsl5 libpython-stdlib
|
|
libpython2.7-minimal libpython2.7-stdlib libpython3.6 libpython3.6-minimal
|
|
libpython3.6-stdlib libreadline7 libroken18-heimdal librtmp1 libsasl2-2
|
|
libsasl2-modules-db libsqlite3-0 libssl1.0.0 libssl1.1 libwind0-heimdal
|
|
libwrap0 libxml2 libxtables12 mime-support multiarch-support openssh-client
|
|
openssh-sftp-server perl perl-modules-5.26 python-minimal python2.7
|
|
python2.7-minimal readline-common shorewall-core ucf vim-common vim-runtime
|
|
xxd
|
|
Suggested packages:
|
|
rblcheck iproute2-doc kmod gdbm-l10n geoip-bin gpm krb5-doc krb5-user
|
|
liblinear-tools liblinear-dev ndiff keychain libpam-ssh monkeysphere
|
|
ssh-askpass molly-guard rssh ufw perl-doc libterm-readline-gnu-perl
|
|
| libterm-readline-perl-perl make python-doc python-tk python2.7-doc
|
|
binutils binfmt-support readline-doc shorewall-doc apparmor ctags vim-doc
|
|
vim-scripts
|
|
Recommended packages:
|
|
libatm1 libcap2-bin ca-certificates geoip-database krb5-locales publicsuffix
|
|
libsasl2-modules file xz-utils xauth libpam-systemd ncurses-term
|
|
ssh-import-id netbase libnetfilter-cthelper0
|
|
The following NEW packages will be installed:
|
|
bc bind9-host curl dnsutils iproute2 iptables iputils-ping libasn1-8-heimdal
|
|
libbind9-160 libblas3 libbsd0 libcap2 libcurl4 libdns1100 libedit2 libelf1
|
|
libexpat1 libgdbm-compat4 libgdbm5 libgeoip1 libgpm2 libgssapi-krb5-2
|
|
libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal
|
|
libheimntlm0-heimdal libhx509-5-heimdal libicu60 libidn11 libip4tc0
|
|
libip6tc0 libiptc0 libirs160 libisc169 libisccc160 libisccfg160 libjson-c3
|
|
libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0
|
|
libldap-2.4-2 libldap-common liblinear3 liblua5.3-0 liblwres160 libmnl0
|
|
libmpdec2 libnetfilter-conntrack3 libnfnetlink0 libnghttp2-14 libpcap0.8
|
|
libperl5.26 libpsl5 libpython-stdlib libpython2.7-minimal
|
|
libpython2.7-stdlib libpython3.6 libpython3.6-minimal libpython3.6-stdlib
|
|
libreadline7 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules-db
|
|
libsqlite3-0 libssl1.0.0 libssl1.1 libwind0-heimdal libwrap0 libxml2
|
|
libxtables12 mime-support multiarch-support net-tools nmap openssh-client
|
|
openssh-server openssh-sftp-server perl perl-modules-5.26 python
|
|
python-minimal python2.7 python2.7-minimal readline-common shorewall
|
|
shorewall-core sudo tcpdump ucf vim vim-common vim-runtime wget xxd
|
|
0 upgraded, 97 newly installed, 0 to remove and 4 not upgraded.
|
|
Need to get 46.9 MB of archives.
|
|
After this operation, 210 MB of additional disk space will be used.
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 multiarch-support amd64 2.27-3ubuntu1.4 [6944 B]
|
|
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnfnetlink0 amd64 1.0.1-3 [13.3 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 perl-modules-5.26 all 5.26.1-6ubuntu0.5 [2762 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgdbm5 amd64 1.14.1-6 [26.0 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgdbm-compat4 amd64 1.14.1-6 [6084 B]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libperl5.26 amd64 5.26.1-6ubuntu0.5 [3534 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 perl amd64 5.26.1-6ubuntu0.5 [201 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-minimal amd64 2.7.17-1~18.04ubuntu1.2 [335 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7-minimal amd64 2.7.17-1~18.04ubuntu1.2 [1290 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 python-minimal amd64 2.7.15~rc1-1 [28.1 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.1 amd64 1.1.1-1ubuntu2.1~18.04.7 [1301 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 mime-support all 3.60ubuntu1 [30.1 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libexpat1 amd64 2.2.5-3ubuntu0.2 [80.5 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 readline-common all 7.0-3 [52.9 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 libreadline7 amd64 7.0-3 [124 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsqlite3-0 amd64 3.22.0-1ubuntu0.4 [499 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython2.7-stdlib amd64 2.7.17-1~18.04ubuntu1.2 [1916 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python2.7 amd64 2.7.17-1~18.04ubuntu1.2 [248 kB]
|
|
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpython-stdlib amd64 2.7.15~rc1-1 [7620 B]
|
|
Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 python amd64 2.7.15~rc1-1 [140 kB]
|
|
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libelf1 amd64 0.170-0.4ubuntu0.1 [44.8 kB]
|
|
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmnl0 amd64 1.0.4-2 [12.3 kB]
|
|
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 iproute2 amd64 4.15.0-2ubuntu1.2 [722 kB]
|
|
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcap2 amd64 1:2.25-1.2 [13.0 kB]
|
|
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libidn11 amd64 1.33-2.1ubuntu1.2 [46.6 kB]
|
|
Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 iputils-ping amd64 3:20161105-1ubuntu3 [54.2 kB]
|
|
Get:27 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbsd0 amd64 0.8.7-1ubuntu0.1 [41.6 kB]
|
|
Get:28 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libicu60 amd64 60.2-3ubuntu3.1 [8054 kB]
|
|
Get:29 http://archive.ubuntu.com/ubuntu bionic/main amd64 libip4tc0 amd64 1.6.1-2ubuntu2 [19.6 kB]
|
|
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libjson-c3 amd64 0.12.1-1.3ubuntu0.3 [21.7 kB]
|
|
Get:31 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpdec2 amd64 2.4.2-1ubuntu1 [84.1 kB]
|
|
Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-minimal amd64 3.6.9-1~18.04ubuntu1.3 [533 kB]
|
|
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-stdlib amd64 3.6.9-1~18.04ubuntu1.3 [1713 kB]
|
|
Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libxml2 amd64 2.9.4+dfsg1-6.1ubuntu1.3 [663 kB]
|
|
Get:35 http://archive.ubuntu.com/ubuntu bionic/main amd64 libxtables12 amd64 1.6.1-2ubuntu2 [27.9 kB]
|
|
Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 sudo amd64 1.8.21p2-3ubuntu1.3 [428 kB]
|
|
Get:37 http://archive.ubuntu.com/ubuntu bionic/main amd64 ucf all 3.0038 [50.5 kB]
|
|
Get:38 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 xxd amd64 2:8.0.1453-1ubuntu1.4 [49.3 kB]
|
|
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim-common all 2:8.0.1453-1ubuntu1.4 [70.4 kB]
|
|
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libisc169 amd64 1:9.11.3+dfsg-1ubuntu1.13 [238 kB]
|
|
Get:41 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgeoip1 amd64 1.6.12-1 [71.8 kB]
|
|
Get:42 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libkrb5support0 amd64 1.16-2ubuntu0.2 [30.8 kB]
|
|
Get:43 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libk5crypto3 amd64 1.16-2ubuntu0.2 [85.5 kB]
|
|
Get:44 http://archive.ubuntu.com/ubuntu bionic/main amd64 libkeyutils1 amd64 1.5.9-9.2ubuntu2 [8720 B]
|
|
Get:45 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libkrb5-3 amd64 1.16-2ubuntu0.2 [279 kB]
|
|
Get:46 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgssapi-krb5-2 amd64 1.16-2ubuntu0.2 [122 kB]
|
|
Get:47 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdns1100 amd64 1:9.11.3+dfsg-1ubuntu1.13 [966 kB]
|
|
Get:48 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libisccc160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [17.9 kB]
|
|
Get:49 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libisccfg160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [48.4 kB]
|
|
Get:50 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbind9-160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [27.6 kB]
|
|
Get:51 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblwres160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [34.7 kB]
|
|
Get:52 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 bind9-host amd64 1:9.11.3+dfsg-1ubuntu1.13 [53.5 kB]
|
|
Get:53 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libirs160 amd64 1:9.11.3+dfsg-1ubuntu1.13 [19.1 kB]
|
|
Get:54 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dnsutils amd64 1:9.11.3+dfsg-1ubuntu1.13 [145 kB]
|
|
Get:55 http://archive.ubuntu.com/ubuntu bionic/main amd64 libip6tc0 amd64 1.6.1-2ubuntu2 [19.9 kB]
|
|
Get:56 http://archive.ubuntu.com/ubuntu bionic/main amd64 libiptc0 amd64 1.6.1-2ubuntu2 [9308 B]
|
|
Get:57 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnetfilter-conntrack3 amd64 1.0.6-2 [37.8 kB]
|
|
Get:58 http://archive.ubuntu.com/ubuntu bionic/main amd64 iptables amd64 1.6.1-2ubuntu2 [269 kB]
|
|
Get:59 http://archive.ubuntu.com/ubuntu bionic/main amd64 libedit2 amd64 3.1-20170329-1 [76.9 kB]
|
|
Get:60 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpcap0.8 amd64 1.8.1-6ubuntu1.18.04.2 [118 kB]
|
|
Get:61 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpsl5 amd64 0.19.1-5build1 [41.8 kB]
|
|
Get:62 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.0.0 amd64 1.0.2n-1ubuntu5.5 [1088 kB]
|
|
Get:63 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-client amd64 1:7.6p1-4ubuntu0.3 [614 kB]
|
|
Get:64 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tcpdump amd64 4.9.3-0ubuntu0.18.04.1 [364 kB]
|
|
Get:65 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 wget amd64 1.19.4-1ubuntu2.2 [316 kB]
|
|
Get:66 http://archive.ubuntu.com/ubuntu bionic/main amd64 bc amd64 1.07.1-2 [86.2 kB]
|
|
Get:67 http://archive.ubuntu.com/ubuntu bionic/main amd64 libroken18-heimdal amd64 7.5.0+dfsg-1 [41.3 kB]
|
|
Get:68 http://archive.ubuntu.com/ubuntu bionic/main amd64 libasn1-8-heimdal amd64 7.5.0+dfsg-1 [175 kB]
|
|
Get:69 http://archive.ubuntu.com/ubuntu bionic/main amd64 libheimbase1-heimdal amd64 7.5.0+dfsg-1 [29.3 kB]
|
|
Get:70 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhcrypto4-heimdal amd64 7.5.0+dfsg-1 [85.9 kB]
|
|
Get:71 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwind0-heimdal amd64 7.5.0+dfsg-1 [47.8 kB]
|
|
Get:72 http://archive.ubuntu.com/ubuntu bionic/main amd64 libhx509-5-heimdal amd64 7.5.0+dfsg-1 [107 kB]
|
|
Get:73 http://archive.ubuntu.com/ubuntu bionic/main amd64 libkrb5-26-heimdal amd64 7.5.0+dfsg-1 [206 kB]
|
|
Get:74 http://archive.ubuntu.com/ubuntu bionic/main amd64 libheimntlm0-heimdal amd64 7.5.0+dfsg-1 [14.8 kB]
|
|
Get:75 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgssapi3-heimdal amd64 7.5.0+dfsg-1 [96.5 kB]
|
|
Get:76 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsasl2-modules-db amd64 2.1.27~101-g0780600+dfsg-3ubuntu2.1 [14.8 kB]
|
|
Get:77 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsasl2-2 amd64 2.1.27~101-g0780600+dfsg-3ubuntu2.1 [49.2 kB]
|
|
Get:78 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libldap-common all 2.4.45+dfsg-1ubuntu1.8 [17.0 kB]
|
|
Get:79 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libldap-2.4-2 amd64 2.4.45+dfsg-1ubuntu1.8 [155 kB]
|
|
Get:80 http://archive.ubuntu.com/ubuntu bionic/main amd64 libnghttp2-14 amd64 1.30.0-1ubuntu1 [77.8 kB]
|
|
Get:81 http://archive.ubuntu.com/ubuntu bionic/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-1 [54.2 kB]
|
|
Get:82 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.12 [214 kB]
|
|
Get:83 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 curl amd64 7.58.0-2ubuntu3.12 [159 kB]
|
|
Get:84 http://archive.ubuntu.com/ubuntu bionic/main amd64 libblas3 amd64 3.7.1-4ubuntu1 [140 kB]
|
|
Get:85 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgpm2 amd64 1.20.7-5 [15.1 kB]
|
|
Get:86 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblinear3 amd64 2.1.0+dfsg-2 [39.3 kB]
|
|
Get:87 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 liblua5.3-0 amd64 5.3.3-1ubuntu0.18.04.1 [115 kB]
|
|
Get:88 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6 amd64 3.6.9-1~18.04ubuntu1.3 [1414 kB]
|
|
Get:89 http://archive.ubuntu.com/ubuntu bionic/main amd64 libwrap0 amd64 7.6.q-27 [46.3 kB]
|
|
Get:90 http://archive.ubuntu.com/ubuntu bionic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-1ubuntu1 [194 kB]
|
|
Get:91 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-sftp-server amd64 1:7.6p1-4ubuntu0.3 [45.6 kB]
|
|
Get:92 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-server amd64 1:7.6p1-4ubuntu0.3 [333 kB]
|
|
Get:93 http://archive.ubuntu.com/ubuntu bionic/universe amd64 shorewall-core all 5.1.12.2-1 [67.6 kB]
|
|
Get:94 http://archive.ubuntu.com/ubuntu bionic/universe amd64 shorewall all 5.1.12.2-1 [761 kB]
|
|
Get:95 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim-runtime all 2:8.0.1453-1ubuntu1.4 [5435 kB]
|
|
Get:96 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim amd64 2:8.0.1453-1ubuntu1.4 [1152 kB]
|
|
Get:97 http://archive.ubuntu.com/ubuntu bionic/main amd64 nmap amd64 7.60-1ubuntu5 [5174 kB]
|
|
[91mdebconf: delaying package configuration, since apt-utils is not installed
|
|
[0mFetched 46.9 MB in 22s (2096 kB/s)
|
|
Selecting previously unselected package multiarch-support.
|
|
(Reading database ...
|
|
(Reading database ... 5%
|
|
(Reading database ... 10%
|
|
(Reading database ... 15%
|
|
(Reading database ... 20%
|
|
(Reading database ... 25%
|
|
(Reading database ... 30%
|
|
(Reading database ... 35%
|
|
(Reading database ... 40%
|
|
(Reading database ... 45%
|
|
(Reading database ... 50%
|
|
(Reading database ... 55%
|
|
(Reading database ... 60%
|
|
(Reading database ... 65%
|
|
(Reading database ... 70%
|
|
(Reading database ... 75%
|
|
(Reading database ... 80%
|
|
(Reading database ... 85%
|
|
(Reading database ... 90%
|
|
(Reading database ... 95%
|
|
(Reading database ... 100%
|
|
(Reading database ... 4045 files and directories currently installed.)
|
|
Preparing to unpack .../multiarch-support_2.27-3ubuntu1.4_amd64.deb ...
|
|
Unpacking multiarch-support (2.27-3ubuntu1.4) ...
|
|
Setting up multiarch-support (2.27-3ubuntu1.4) ...
|
|
Selecting previously unselected package libnfnetlink0:amd64.
|
|
(Reading database ...
|
|
(Reading database ... 5%
|
|
(Reading database ... 10%
|
|
(Reading database ... 15%
|
|
(Reading database ... 20%
|
|
(Reading database ... 25%
|
|
(Reading database ... 30%
|
|
(Reading database ... 35%
|
|
(Reading database ... 40%
|
|
(Reading database ... 45%
|
|
(Reading database ... 50%
|
|
(Reading database ... 55%
|
|
(Reading database ... 60%
|
|
(Reading database ... 65%
|
|
(Reading database ... 70%
|
|
(Reading database ... 75%
|
|
(Reading database ... 80%
|
|
(Reading database ... 85%
|
|
(Reading database ... 90%
|
|
(Reading database ... 95%
|
|
(Reading database ... 100%
|
|
(Reading database ... 4048 files and directories currently installed.)
|
|
Preparing to unpack .../00-libnfnetlink0_1.0.1-3_amd64.deb ...
|
|
Unpacking libnfnetlink0:amd64 (1.0.1-3) ...
|
|
Selecting previously unselected package perl-modules-5.26.
|
|
Preparing to unpack .../01-perl-modules-5.26_5.26.1-6ubuntu0.5_all.deb ...
|
|
Unpacking perl-modules-5.26 (5.26.1-6ubuntu0.5) ...
|
|
Selecting previously unselected package libgdbm5:amd64.
|
|
Preparing to unpack .../02-libgdbm5_1.14.1-6_amd64.deb ...
|
|
Unpacking libgdbm5:amd64 (1.14.1-6) ...
|
|
Selecting previously unselected package libgdbm-compat4:amd64.
|
|
Preparing to unpack .../03-libgdbm-compat4_1.14.1-6_amd64.deb ...
|
|
Unpacking libgdbm-compat4:amd64 (1.14.1-6) ...
|
|
Selecting previously unselected package libperl5.26:amd64.
|
|
Preparing to unpack .../04-libperl5.26_5.26.1-6ubuntu0.5_amd64.deb ...
|
|
Unpacking libperl5.26:amd64 (5.26.1-6ubuntu0.5) ...
|
|
Selecting previously unselected package perl.
|
|
Preparing to unpack .../05-perl_5.26.1-6ubuntu0.5_amd64.deb ...
|
|
Unpacking perl (5.26.1-6ubuntu0.5) ...
|
|
Selecting previously unselected package libpython2.7-minimal:amd64.
|
|
Preparing to unpack .../06-libpython2.7-minimal_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking libpython2.7-minimal:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package python2.7-minimal.
|
|
Preparing to unpack .../07-python2.7-minimal_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking python2.7-minimal (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package python-minimal.
|
|
Preparing to unpack .../08-python-minimal_2.7.15~rc1-1_amd64.deb ...
|
|
Unpacking python-minimal (2.7.15~rc1-1) ...
|
|
Selecting previously unselected package libssl1.1:amd64.
|
|
Preparing to unpack .../09-libssl1.1_1.1.1-1ubuntu2.1~18.04.7_amd64.deb ...
|
|
Unpacking libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.7) ...
|
|
Selecting previously unselected package mime-support.
|
|
Preparing to unpack .../10-mime-support_3.60ubuntu1_all.deb ...
|
|
Unpacking mime-support (3.60ubuntu1) ...
|
|
Selecting previously unselected package libexpat1:amd64.
|
|
Preparing to unpack .../11-libexpat1_2.2.5-3ubuntu0.2_amd64.deb ...
|
|
Unpacking libexpat1:amd64 (2.2.5-3ubuntu0.2) ...
|
|
Selecting previously unselected package readline-common.
|
|
Preparing to unpack .../12-readline-common_7.0-3_all.deb ...
|
|
Unpacking readline-common (7.0-3) ...
|
|
Selecting previously unselected package libreadline7:amd64.
|
|
Preparing to unpack .../13-libreadline7_7.0-3_amd64.deb ...
|
|
Unpacking libreadline7:amd64 (7.0-3) ...
|
|
Selecting previously unselected package libsqlite3-0:amd64.
|
|
Preparing to unpack .../14-libsqlite3-0_3.22.0-1ubuntu0.4_amd64.deb ...
|
|
Unpacking libsqlite3-0:amd64 (3.22.0-1ubuntu0.4) ...
|
|
Selecting previously unselected package libpython2.7-stdlib:amd64.
|
|
Preparing to unpack .../15-libpython2.7-stdlib_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package python2.7.
|
|
Preparing to unpack .../16-python2.7_2.7.17-1~18.04ubuntu1.2_amd64.deb ...
|
|
Unpacking python2.7 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Selecting previously unselected package libpython-stdlib:amd64.
|
|
Preparing to unpack .../17-libpython-stdlib_2.7.15~rc1-1_amd64.deb ...
|
|
Unpacking libpython-stdlib:amd64 (2.7.15~rc1-1) ...
|
|
Setting up libpython2.7-minimal:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up python2.7-minimal (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up python-minimal (2.7.15~rc1-1) ...
|
|
Selecting previously unselected package python.
|
|
(Reading database ...
|
|
(Reading database ... 5%
|
|
(Reading database ... 10%
|
|
(Reading database ... 15%
|
|
(Reading database ... 20%
|
|
(Reading database ... 25%
|
|
(Reading database ... 30%
|
|
(Reading database ... 35%
|
|
(Reading database ... 40%
|
|
(Reading database ... 45%
|
|
(Reading database ... 50%
|
|
(Reading database ... 55%
|
|
(Reading database ... 60%
|
|
(Reading database ... 65%
|
|
(Reading database ... 70%
|
|
(Reading database ... 75%
|
|
(Reading database ... 80%
|
|
(Reading database ... 85%
|
|
(Reading database ... 90%
|
|
(Reading database ... 95%
|
|
(Reading database ... 100%
|
|
(Reading database ... 6786 files and directories currently installed.)
|
|
Preparing to unpack .../00-python_2.7.15~rc1-1_amd64.deb ...
|
|
Unpacking python (2.7.15~rc1-1) ...
|
|
Selecting previously unselected package libelf1:amd64.
|
|
Preparing to unpack .../01-libelf1_0.170-0.4ubuntu0.1_amd64.deb ...
|
|
Unpacking libelf1:amd64 (0.170-0.4ubuntu0.1) ...
|
|
Selecting previously unselected package libmnl0:amd64.
|
|
Preparing to unpack .../02-libmnl0_1.0.4-2_amd64.deb ...
|
|
Unpacking libmnl0:amd64 (1.0.4-2) ...
|
|
Selecting previously unselected package iproute2.
|
|
Preparing to unpack .../03-iproute2_4.15.0-2ubuntu1.2_amd64.deb ...
|
|
Unpacking iproute2 (4.15.0-2ubuntu1.2) ...
|
|
Selecting previously unselected package libcap2:amd64.
|
|
Preparing to unpack .../04-libcap2_1%3a2.25-1.2_amd64.deb ...
|
|
Unpacking libcap2:amd64 (1:2.25-1.2) ...
|
|
Selecting previously unselected package libidn11:amd64.
|
|
Preparing to unpack .../05-libidn11_1.33-2.1ubuntu1.2_amd64.deb ...
|
|
Unpacking libidn11:amd64 (1.33-2.1ubuntu1.2) ...
|
|
Selecting previously unselected package iputils-ping.
|
|
Preparing to unpack .../06-iputils-ping_3%3a20161105-1ubuntu3_amd64.deb ...
|
|
Unpacking iputils-ping (3:20161105-1ubuntu3) ...
|
|
Selecting previously unselected package libbsd0:amd64.
|
|
Preparing to unpack .../07-libbsd0_0.8.7-1ubuntu0.1_amd64.deb ...
|
|
Unpacking libbsd0:amd64 (0.8.7-1ubuntu0.1) ...
|
|
Selecting previously unselected package libicu60:amd64.
|
|
Preparing to unpack .../08-libicu60_60.2-3ubuntu3.1_amd64.deb ...
|
|
Unpacking libicu60:amd64 (60.2-3ubuntu3.1) ...
|
|
Selecting previously unselected package libip4tc0:amd64.
|
|
Preparing to unpack .../09-libip4tc0_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libip4tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libjson-c3:amd64.
|
|
Preparing to unpack .../10-libjson-c3_0.12.1-1.3ubuntu0.3_amd64.deb ...
|
|
Unpacking libjson-c3:amd64 (0.12.1-1.3ubuntu0.3) ...
|
|
Selecting previously unselected package libmpdec2:amd64.
|
|
Preparing to unpack .../11-libmpdec2_2.4.2-1ubuntu1_amd64.deb ...
|
|
Unpacking libmpdec2:amd64 (2.4.2-1ubuntu1) ...
|
|
Selecting previously unselected package libpython3.6-minimal:amd64.
|
|
Preparing to unpack .../12-libpython3.6-minimal_3.6.9-1~18.04ubuntu1.3_amd64.deb ...
|
|
Unpacking libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Selecting previously unselected package libpython3.6-stdlib:amd64.
|
|
Preparing to unpack .../13-libpython3.6-stdlib_3.6.9-1~18.04ubuntu1.3_amd64.deb ...
|
|
Unpacking libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Selecting previously unselected package libxml2:amd64.
|
|
Preparing to unpack .../14-libxml2_2.9.4+dfsg1-6.1ubuntu1.3_amd64.deb ...
|
|
Unpacking libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
|
|
Selecting previously unselected package libxtables12:amd64.
|
|
Preparing to unpack .../15-libxtables12_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libxtables12:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package sudo.
|
|
Preparing to unpack .../16-sudo_1.8.21p2-3ubuntu1.3_amd64.deb ...
|
|
Unpacking sudo (1.8.21p2-3ubuntu1.3) ...
|
|
Selecting previously unselected package ucf.
|
|
Preparing to unpack .../17-ucf_3.0038_all.deb ...
|
|
Moving old data out of the way
|
|
Unpacking ucf (3.0038) ...
|
|
Selecting previously unselected package xxd.
|
|
Preparing to unpack .../18-xxd_2%3a8.0.1453-1ubuntu1.4_amd64.deb ...
|
|
Unpacking xxd (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package vim-common.
|
|
Preparing to unpack .../19-vim-common_2%3a8.0.1453-1ubuntu1.4_all.deb ...
|
|
Unpacking vim-common (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package libisc169:amd64.
|
|
Preparing to unpack .../20-libisc169_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libisc169:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libgeoip1:amd64.
|
|
Preparing to unpack .../21-libgeoip1_1.6.12-1_amd64.deb ...
|
|
Unpacking libgeoip1:amd64 (1.6.12-1) ...
|
|
Selecting previously unselected package libkrb5support0:amd64.
|
|
Preparing to unpack .../22-libkrb5support0_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libkrb5support0:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libk5crypto3:amd64.
|
|
Preparing to unpack .../23-libk5crypto3_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libk5crypto3:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libkeyutils1:amd64.
|
|
Preparing to unpack .../24-libkeyutils1_1.5.9-9.2ubuntu2_amd64.deb ...
|
|
Unpacking libkeyutils1:amd64 (1.5.9-9.2ubuntu2) ...
|
|
Selecting previously unselected package libkrb5-3:amd64.
|
|
Preparing to unpack .../25-libkrb5-3_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libkrb5-3:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libgssapi-krb5-2:amd64.
|
|
Preparing to unpack .../26-libgssapi-krb5-2_1.16-2ubuntu0.2_amd64.deb ...
|
|
Unpacking libgssapi-krb5-2:amd64 (1.16-2ubuntu0.2) ...
|
|
Selecting previously unselected package libdns1100:amd64.
|
|
Preparing to unpack .../27-libdns1100_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libdns1100:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libisccc160:amd64.
|
|
Preparing to unpack .../28-libisccc160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libisccc160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libisccfg160:amd64.
|
|
Preparing to unpack .../29-libisccfg160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libisccfg160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libbind9-160:amd64.
|
|
Preparing to unpack .../30-libbind9-160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package liblwres160:amd64.
|
|
Preparing to unpack .../31-liblwres160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking liblwres160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package bind9-host.
|
|
Preparing to unpack .../32-bind9-host_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking bind9-host (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libirs160:amd64.
|
|
Preparing to unpack .../33-libirs160_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package dnsutils.
|
|
Preparing to unpack .../34-dnsutils_1%3a9.11.3+dfsg-1ubuntu1.13_amd64.deb ...
|
|
Unpacking dnsutils (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Selecting previously unselected package libip6tc0:amd64.
|
|
Preparing to unpack .../35-libip6tc0_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libip6tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libiptc0:amd64.
|
|
Preparing to unpack .../36-libiptc0_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking libiptc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libnetfilter-conntrack3:amd64.
|
|
Preparing to unpack .../37-libnetfilter-conntrack3_1.0.6-2_amd64.deb ...
|
|
Unpacking libnetfilter-conntrack3:amd64 (1.0.6-2) ...
|
|
Selecting previously unselected package iptables.
|
|
Preparing to unpack .../38-iptables_1.6.1-2ubuntu2_amd64.deb ...
|
|
Unpacking iptables (1.6.1-2ubuntu2) ...
|
|
Selecting previously unselected package libedit2:amd64.
|
|
Preparing to unpack .../39-libedit2_3.1-20170329-1_amd64.deb ...
|
|
Unpacking libedit2:amd64 (3.1-20170329-1) ...
|
|
Selecting previously unselected package libpcap0.8:amd64.
|
|
Preparing to unpack .../40-libpcap0.8_1.8.1-6ubuntu1.18.04.2_amd64.deb ...
|
|
Unpacking libpcap0.8:amd64 (1.8.1-6ubuntu1.18.04.2) ...
|
|
Selecting previously unselected package libpsl5:amd64.
|
|
Preparing to unpack .../41-libpsl5_0.19.1-5build1_amd64.deb ...
|
|
Unpacking libpsl5:amd64 (0.19.1-5build1) ...
|
|
Selecting previously unselected package libssl1.0.0:amd64.
|
|
Preparing to unpack .../42-libssl1.0.0_1.0.2n-1ubuntu5.5_amd64.deb ...
|
|
Unpacking libssl1.0.0:amd64 (1.0.2n-1ubuntu5.5) ...
|
|
Selecting previously unselected package openssh-client.
|
|
Preparing to unpack .../43-openssh-client_1%3a7.6p1-4ubuntu0.3_amd64.deb ...
|
|
Unpacking openssh-client (1:7.6p1-4ubuntu0.3) ...
|
|
Selecting previously unselected package tcpdump.
|
|
Preparing to unpack .../44-tcpdump_4.9.3-0ubuntu0.18.04.1_amd64.deb ...
|
|
Unpacking tcpdump (4.9.3-0ubuntu0.18.04.1) ...
|
|
Selecting previously unselected package wget.
|
|
Preparing to unpack .../45-wget_1.19.4-1ubuntu2.2_amd64.deb ...
|
|
Unpacking wget (1.19.4-1ubuntu2.2) ...
|
|
Selecting previously unselected package bc.
|
|
Preparing to unpack .../46-bc_1.07.1-2_amd64.deb ...
|
|
Unpacking bc (1.07.1-2) ...
|
|
Selecting previously unselected package libroken18-heimdal:amd64.
|
|
Preparing to unpack .../47-libroken18-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libroken18-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libasn1-8-heimdal:amd64.
|
|
Preparing to unpack .../48-libasn1-8-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libasn1-8-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libheimbase1-heimdal:amd64.
|
|
Preparing to unpack .../49-libheimbase1-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libheimbase1-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libhcrypto4-heimdal:amd64.
|
|
Preparing to unpack .../50-libhcrypto4-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libhcrypto4-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libwind0-heimdal:amd64.
|
|
Preparing to unpack .../51-libwind0-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libwind0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libhx509-5-heimdal:amd64.
|
|
Preparing to unpack .../52-libhx509-5-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libhx509-5-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libkrb5-26-heimdal:amd64.
|
|
Preparing to unpack .../53-libkrb5-26-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libkrb5-26-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libheimntlm0-heimdal:amd64.
|
|
Preparing to unpack .../54-libheimntlm0-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libheimntlm0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libgssapi3-heimdal:amd64.
|
|
Preparing to unpack .../55-libgssapi3-heimdal_7.5.0+dfsg-1_amd64.deb ...
|
|
Unpacking libgssapi3-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Selecting previously unselected package libsasl2-modules-db:amd64.
|
|
Preparing to unpack .../56-libsasl2-modules-db_2.1.27~101-g0780600+dfsg-3ubuntu2.1_amd64.deb ...
|
|
Unpacking libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Selecting previously unselected package libsasl2-2:amd64.
|
|
Preparing to unpack .../57-libsasl2-2_2.1.27~101-g0780600+dfsg-3ubuntu2.1_amd64.deb ...
|
|
Unpacking libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Selecting previously unselected package libldap-common.
|
|
Preparing to unpack .../58-libldap-common_2.4.45+dfsg-1ubuntu1.8_all.deb ...
|
|
Unpacking libldap-common (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Selecting previously unselected package libldap-2.4-2:amd64.
|
|
Preparing to unpack .../59-libldap-2.4-2_2.4.45+dfsg-1ubuntu1.8_amd64.deb ...
|
|
Unpacking libldap-2.4-2:amd64 (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Selecting previously unselected package libnghttp2-14:amd64.
|
|
Preparing to unpack .../60-libnghttp2-14_1.30.0-1ubuntu1_amd64.deb ...
|
|
Unpacking libnghttp2-14:amd64 (1.30.0-1ubuntu1) ...
|
|
Selecting previously unselected package librtmp1:amd64.
|
|
Preparing to unpack .../61-librtmp1_2.4+20151223.gitfa8646d.1-1_amd64.deb ...
|
|
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-1) ...
|
|
Selecting previously unselected package libcurl4:amd64.
|
|
Preparing to unpack .../62-libcurl4_7.58.0-2ubuntu3.12_amd64.deb ...
|
|
Unpacking libcurl4:amd64 (7.58.0-2ubuntu3.12) ...
|
|
Selecting previously unselected package curl.
|
|
Preparing to unpack .../63-curl_7.58.0-2ubuntu3.12_amd64.deb ...
|
|
Unpacking curl (7.58.0-2ubuntu3.12) ...
|
|
Selecting previously unselected package libblas3:amd64.
|
|
Preparing to unpack .../64-libblas3_3.7.1-4ubuntu1_amd64.deb ...
|
|
Unpacking libblas3:amd64 (3.7.1-4ubuntu1) ...
|
|
Selecting previously unselected package libgpm2:amd64.
|
|
Preparing to unpack .../65-libgpm2_1.20.7-5_amd64.deb ...
|
|
Unpacking libgpm2:amd64 (1.20.7-5) ...
|
|
Selecting previously unselected package liblinear3:amd64.
|
|
Preparing to unpack .../66-liblinear3_2.1.0+dfsg-2_amd64.deb ...
|
|
Unpacking liblinear3:amd64 (2.1.0+dfsg-2) ...
|
|
Selecting previously unselected package liblua5.3-0:amd64.
|
|
Preparing to unpack .../67-liblua5.3-0_5.3.3-1ubuntu0.18.04.1_amd64.deb ...
|
|
Unpacking liblua5.3-0:amd64 (5.3.3-1ubuntu0.18.04.1) ...
|
|
Selecting previously unselected package libpython3.6:amd64.
|
|
Preparing to unpack .../68-libpython3.6_3.6.9-1~18.04ubuntu1.3_amd64.deb ...
|
|
Unpacking libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Selecting previously unselected package libwrap0:amd64.
|
|
Preparing to unpack .../69-libwrap0_7.6.q-27_amd64.deb ...
|
|
Unpacking libwrap0:amd64 (7.6.q-27) ...
|
|
Selecting previously unselected package net-tools.
|
|
Preparing to unpack .../70-net-tools_1.60+git20161116.90da8a0-1ubuntu1_amd64.deb ...
|
|
Unpacking net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
|
|
Selecting previously unselected package openssh-sftp-server.
|
|
Preparing to unpack .../71-openssh-sftp-server_1%3a7.6p1-4ubuntu0.3_amd64.deb ...
|
|
Unpacking openssh-sftp-server (1:7.6p1-4ubuntu0.3) ...
|
|
Selecting previously unselected package openssh-server.
|
|
Preparing to unpack .../72-openssh-server_1%3a7.6p1-4ubuntu0.3_amd64.deb ...
|
|
Unpacking openssh-server (1:7.6p1-4ubuntu0.3) ...
|
|
Selecting previously unselected package shorewall-core.
|
|
Preparing to unpack .../73-shorewall-core_5.1.12.2-1_all.deb ...
|
|
Unpacking shorewall-core (5.1.12.2-1) ...
|
|
Selecting previously unselected package shorewall.
|
|
Preparing to unpack .../74-shorewall_5.1.12.2-1_all.deb ...
|
|
Unpacking shorewall (5.1.12.2-1) ...
|
|
Selecting previously unselected package vim-runtime.
|
|
Preparing to unpack .../75-vim-runtime_2%3a8.0.1453-1ubuntu1.4_all.deb ...
|
|
Adding 'diversion of /usr/share/vim/vim80/doc/help.txt to /usr/share/vim/vim80/doc/help.txt.vim-tiny by vim-runtime'
|
|
Adding 'diversion of /usr/share/vim/vim80/doc/tags to /usr/share/vim/vim80/doc/tags.vim-tiny by vim-runtime'
|
|
Unpacking vim-runtime (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package vim.
|
|
Preparing to unpack .../76-vim_2%3a8.0.1453-1ubuntu1.4_amd64.deb ...
|
|
Unpacking vim (2:8.0.1453-1ubuntu1.4) ...
|
|
Selecting previously unselected package nmap.
|
|
Preparing to unpack .../77-nmap_7.60-1ubuntu5_amd64.deb ...
|
|
Unpacking nmap (7.60-1ubuntu5) ...
|
|
Setting up libedit2:amd64 (3.1-20170329-1) ...
|
|
Setting up readline-common (7.0-3) ...
|
|
Setting up libexpat1:amd64 (2.2.5-3ubuntu0.2) ...
|
|
Setting up libicu60:amd64 (60.2-3ubuntu3.1) ...
|
|
Setting up libip4tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libssl1.0.0:amd64 (1.0.2n-1ubuntu5.5) ...
|
|
Setting up libnghttp2-14:amd64 (1.30.0-1ubuntu1) ...
|
|
Setting up mime-support (3.60ubuntu1) ...
|
|
Setting up xxd (2:8.0.1453-1ubuntu1.4) ...
|
|
Setting up sudo (1.8.21p2-3ubuntu1.3) ...
|
|
Setting up libgpm2:amd64 (1.20.7-5) ...
|
|
Setting up libldap-common (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Setting up libreadline7:amd64 (7.0-3) ...
|
|
Setting up libjson-c3:amd64 (0.12.1-1.3ubuntu0.3) ...
|
|
Setting up libpsl5:amd64 (0.19.1-5build1) ...
|
|
Setting up libelf1:amd64 (0.170-0.4ubuntu0.1) ...
|
|
Setting up libcap2:amd64 (1:2.25-1.2) ...
|
|
Setting up libsasl2-modules-db:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Setting up libsasl2-2:amd64 (2.1.27~101-g0780600+dfsg-3ubuntu2.1) ...
|
|
Setting up libiptc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libroken18-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-1) ...
|
|
Setting up perl-modules-5.26 (5.26.1-6ubuntu0.5) ...
|
|
Setting up libgdbm5:amd64 (1.14.1-6) ...
|
|
Setting up libgeoip1:amd64 (1.6.12-1) ...
|
|
Setting up libbsd0:amd64 (0.8.7-1ubuntu0.1) ...
|
|
Setting up libkrb5support0:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up ucf (3.0038) ...
|
|
Setting up libxml2:amd64 (2.9.4+dfsg1-6.1ubuntu1.3) ...
|
|
Setting up libblas3:amd64 (3.7.1-4ubuntu1) ...
|
|
update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode
|
|
Setting up libxtables12:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libssl1.1:amd64 (1.1.1-1ubuntu2.1~18.04.7) ...
|
|
Setting up libheimbase1-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up wget (1.19.4-1ubuntu2.2) ...
|
|
Setting up vim-common (2:8.0.1453-1ubuntu1.4) ...
|
|
Setting up libsqlite3-0:amd64 (3.22.0-1ubuntu0.4) ...
|
|
Setting up libnfnetlink0:amd64 (1.0.1-3) ...
|
|
Setting up vim-runtime (2:8.0.1453-1ubuntu1.4) ...
|
|
Setting up libgdbm-compat4:amd64 (1.14.1-6) ...
|
|
Setting up libkeyutils1:amd64 (1.5.9-9.2ubuntu2) ...
|
|
Setting up bc (1.07.1-2) ...
|
|
Setting up liblinear3:amd64 (2.1.0+dfsg-2) ...
|
|
Setting up net-tools (1.60+git20161116.90da8a0-1ubuntu1) ...
|
|
Setting up liblua5.3-0:amd64 (5.3.3-1ubuntu0.18.04.1) ...
|
|
Setting up libmnl0:amd64 (1.0.4-2) ...
|
|
Setting up liblwres160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libpython2.7-stdlib:amd64 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up libidn11:amd64 (1.33-2.1ubuntu1.2) ...
|
|
Setting up libmpdec2:amd64 (2.4.2-1ubuntu1) ...
|
|
Setting up libip6tc0:amd64 (1.6.1-2ubuntu2) ...
|
|
Setting up libwrap0:amd64 (7.6.q-27) ...
|
|
Setting up libpcap0.8:amd64 (1.8.1-6ubuntu1.18.04.2) ...
|
|
Setting up iputils-ping (3:20161105-1ubuntu3) ...
|
|
Setting up libisc169:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libk5crypto3:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up libisccc160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libnetfilter-conntrack3:amd64 (1.0.6-2) ...
|
|
Setting up libwind0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up nmap (7.60-1ubuntu5) ...
|
|
Setting up libasn1-8-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up libhcrypto4-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up python2.7 (2.7.17-1~18.04ubuntu1.2) ...
|
|
Setting up iproute2 (4.15.0-2ubuntu1.2) ...
|
|
Setting up libhx509-5-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up tcpdump (4.9.3-0ubuntu0.18.04.1) ...
|
|
Setting up libpython3.6-minimal:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Setting up libpython-stdlib:amd64 (2.7.15~rc1-1) ...
|
|
Setting up libperl5.26:amd64 (5.26.1-6ubuntu0.5) ...
|
|
Setting up iptables (1.6.1-2ubuntu2) ...
|
|
Setting up libkrb5-3:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up libkrb5-26-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up libheimntlm0-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up python (2.7.15~rc1-1) ...
|
|
Setting up libpython3.6-stdlib:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Setting up libgssapi-krb5-2:amd64 (1.16-2ubuntu0.2) ...
|
|
Setting up perl (5.26.1-6ubuntu0.5) ...
|
|
Setting up libgssapi3-heimdal:amd64 (7.5.0+dfsg-1) ...
|
|
Setting up libdns1100:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up openssh-client (1:7.6p1-4ubuntu0.3) ...
|
|
Setting up libpython3.6:amd64 (3.6.9-1~18.04ubuntu1.3) ...
|
|
Setting up vim (2:8.0.1453-1ubuntu1.4) ...
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/vi.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/vi.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/vi.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/vi.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/vi.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/vi.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group vi) doesn't exist
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/view.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/view.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/view.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/view.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/view.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/view.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group view) doesn't exist
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/ex.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/ex.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/ex.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/ex.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/ex.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/ex.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group ex) doesn't exist
|
|
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
|
|
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/editor.1.gz because associated file /usr/share/man/fr/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/it/man1/editor.1.gz because associated file /usr/share/man/it/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/pl/man1/editor.1.gz because associated file /usr/share/man/pl/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ru/man1/editor.1.gz because associated file /usr/share/man/ru/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/ja/man1/editor.1.gz because associated file /usr/share/man/ja/man1/vim.1.gz (of link group editor) doesn't exist
|
|
update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/vim.1.gz (of link group editor) doesn't exist
|
|
Setting up shorewall-core (5.1.12.2-1) ...
|
|
Setting up libisccfg160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up openssh-sftp-server (1:7.6p1-4ubuntu0.3) ...
|
|
Setting up libldap-2.4-2:amd64 (2.4.45+dfsg-1ubuntu1.8) ...
|
|
Setting up shorewall (5.1.12.2-1) ...
|
|
Setting up libirs160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up libcurl4:amd64 (7.58.0-2ubuntu3.12) ...
|
|
Setting up libbind9-160:amd64 (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up openssh-server (1:7.6p1-4ubuntu0.3) ...
|
|
|
|
Creating config file /etc/ssh/sshd_config with new version
|
|
Creating SSH2 RSA key; this may take some time ...
|
|
2048 SHA256:qKrW09mrrQ9w1jPRWEA6TK7sSpCNRWBDkS/BK+zp/YM root@1e62cf9f6a76 (RSA)
|
|
Creating SSH2 ECDSA key; this may take some time ...
|
|
256 SHA256:51tTs3578kgJlNB5/IFgpLr0t8FYdJBo4s59LSr+X5E root@1e62cf9f6a76 (ECDSA)
|
|
Creating SSH2 ED25519 key; this may take some time ...
|
|
256 SHA256:lY3X7FS5ZqMGqu8Dp5gwKL+PNaG/zFBMSYqK8LVJ+xo root@1e62cf9f6a76 (ED25519)
|
|
invoke-rc.d: could not determine current runlevel
|
|
invoke-rc.d: policy-rc.d denied execution of start.
|
|
Setting up bind9-host (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Setting up curl (7.58.0-2ubuntu3.12) ...
|
|
Setting up dnsutils (1:9.11.3+dfsg-1ubuntu1.13) ...
|
|
Processing triggers for libc-bin (2.27-3ubuntu1.3) ...
|
|
Removing intermediate container 1e62cf9f6a76
|
|
---> eacf45848b0c
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in c01db4007a21
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt[0m[91m does not have a stable CLI interface. Use with caution in scripts.[0m[91m
|
|
|
|
[0mRemoving intermediate container c01db4007a21
|
|
---> aafefe535a35
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 702944f07615
|
|
Removing intermediate container 702944f07615
|
|
---> 05d11b35390a
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in ef4847acd653
|
|
Removing intermediate container ef4847acd653
|
|
---> 8f73841b01c1
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in f2ab773c286a
|
|
Removing intermediate container f2ab773c286a
|
|
---> b399c5cdab92
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in ded8866c3342
|
|
Removing intermediate container ded8866c3342
|
|
---> 479d00733fee
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 9b9c3d3ea4be
|
|
Removing intermediate container 9b9c3d3ea4be
|
|
---> 12b3e0a05a74
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in f14cf16c31a4
|
|
Removing intermediate container f14cf16c31a4
|
|
---> 2be65c0faf7f
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 4053c497f743
|
|
Removing intermediate container 4053c497f743
|
|
---> 747038369e95
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> e18f85794f5e
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 18991e035085
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 79d2a239a0a0
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in b0c8e60328be
|
|
Removing intermediate container b0c8e60328be
|
|
---> ce78db70bc58
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 51d36291d624
|
|
Step 17/23 : RUN mkdir -p /project
|
|
---> Running in 3b4617c333e9
|
|
Removing intermediate container 3b4617c333e9
|
|
---> 9119f758ce38
|
|
Step 18/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 975197e23811
|
|
Removing intermediate container 975197e23811
|
|
---> c505a7c37f05
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 4e61cbd20265
|
|
Removing intermediate container 4e61cbd20265
|
|
---> 68a61e8ef81c
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 4997b5dcecc6
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 5a4fa993ca1f
|
|
Adding user `docker' to group `sudo' ...
|
|
Adding user docker to group sudo
|
|
Done.
|
|
Removing intermediate container 5a4fa993ca1f
|
|
---> e087ee205211
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> fb64208ee46d
|
|
Step 23/23 : USER docker
|
|
---> Running in ee04445d14be
|
|
Removing intermediate container ee04445d14be
|
|
---> 8f2e9f00bfec
|
|
Successfully built 8f2e9f00bfec
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
dfdf70f332e3: Preparing
|
|
0b2fe8f2cfad: Preparing
|
|
2e036d3abb44: Preparing
|
|
8f3c4fe9abf6: Preparing
|
|
59c764dd0b72: Preparing
|
|
5ee30e01e4b7: Preparing
|
|
a1850b6363e3: Preparing
|
|
609d47eb5922: Preparing
|
|
b87171b618eb: Preparing
|
|
5ee30e01e4b7: Waiting
|
|
a1850b6363e3: Waiting
|
|
609d47eb5922: Waiting
|
|
3ee6c857059e: Preparing
|
|
0bbc5a99bf7e: Preparing
|
|
b87171b618eb: Waiting
|
|
b99ef97f18d3: Preparing
|
|
0540154698bb: Preparing
|
|
acd66fc0870d: Preparing
|
|
3ee6c857059e: Waiting
|
|
0bbc5a99bf7e: Waiting
|
|
b99ef97f18d3: Waiting
|
|
0540154698bb: Waiting
|
|
ee811145a141: Preparing
|
|
2872fafb128e: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
ee811145a141: Waiting
|
|
2872fafb128e: Waiting
|
|
fe6d8881187d: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
dfdf70f332e3: Pushed
|
|
2e036d3abb44: Pushed
|
|
8f3c4fe9abf6: Pushed
|
|
0b2fe8f2cfad: Pushed
|
|
59c764dd0b72: Pushed
|
|
609d47eb5922: Pushed
|
|
5ee30e01e4b7: Pushed
|
|
a1850b6363e3: Pushed
|
|
b87171b618eb: Pushed
|
|
3ee6c857059e: Pushed
|
|
0bbc5a99bf7e: Pushed
|
|
0540154698bb: Pushed
|
|
b99ef97f18d3: Pushed
|
|
acd66fc0870d: Pushed
|
|
ee811145a141: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
b43408d5f11b: Pushed
|
|
2872fafb128e: Pushed
|
|
latest: digest: sha256:9d081f9a870cc5aae88de3e3affb865c42d7817fb6a190cd53e8b32a840088c4 size: 4264
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 112.6kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 8f2e9f00bfec
|
|
Step 2/23 : USER root
|
|
---> Running in cbedc1261596
|
|
Removing intermediate container cbedc1261596
|
|
---> a3495717e2e2
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in c998f3dc61fe
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:10 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 11s (1986 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container c998f3dc61fe
|
|
---> eed3c5b4d399
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in dfdd690fb20a
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container dfdd690fb20a
|
|
---> fa2005da3c4d
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in cad8ed507f70
|
|
Removing intermediate container cad8ed507f70
|
|
---> 9f2352b99850
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 5f62fe3e5690
|
|
Removing intermediate container 5f62fe3e5690
|
|
---> 42dc4c97a779
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 36966b7d3a8b
|
|
Removing intermediate container 36966b7d3a8b
|
|
---> 210aaa18c80e
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 12d8811787f4
|
|
Removing intermediate container 12d8811787f4
|
|
---> 4721c714db8b
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in b9effc645211
|
|
Removing intermediate container b9effc645211
|
|
---> f3c6c7e470f5
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 4fd87cc18a2a
|
|
Removing intermediate container 4fd87cc18a2a
|
|
---> 449a33aca934
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 104d683a63fa
|
|
Removing intermediate container 104d683a63fa
|
|
---> 73f0eab2f900
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> ba3b6f791b03
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 9313f4129a1c
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> f6911ee4d63d
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 7bac19f8f821
|
|
Removing intermediate container 7bac19f8f821
|
|
---> ff686986bec5
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 1defae5d37b8
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 1b0f359fbc90
|
|
Removing intermediate container 1b0f359fbc90
|
|
---> 8212b0a4ffb7
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 95be8e4c2d57
|
|
Removing intermediate container 95be8e4c2d57
|
|
---> 43d2fae076d7
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 3a4adcd3764f
|
|
Removing intermediate container 3a4adcd3764f
|
|
---> 35aa7fbbb1d4
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 02ad4f9f7ba8
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 269033eb3989
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 269033eb3989
|
|
---> 029e779c2875
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> c90041d8f336
|
|
Step 23/23 : USER docker
|
|
---> Running in 2db51c55631c
|
|
Removing intermediate container 2db51c55631c
|
|
---> 9dee6301717c
|
|
Successfully built 9dee6301717c
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
cb1d5f75a0a3: Preparing
|
|
337517890bf7: Preparing
|
|
29afcc45a7cd: Preparing
|
|
21505fae7438: Preparing
|
|
00bcf7ab859f: Preparing
|
|
4cbb36f9b1a3: Preparing
|
|
75c8fbe3aac2: Preparing
|
|
4cbb36f9b1a3: Waiting
|
|
6396c3525cd9: Preparing
|
|
75c8fbe3aac2: Waiting
|
|
6396c3525cd9: Waiting
|
|
e1a2875ae1b0: Preparing
|
|
d948ffa88c8f: Preparing
|
|
ed00b2c2f10b: Preparing
|
|
912a259f4f51: Preparing
|
|
a3912fb6f175: Preparing
|
|
e1a2875ae1b0: Waiting
|
|
d948ffa88c8f: Waiting
|
|
ed00b2c2f10b: Waiting
|
|
912a259f4f51: Waiting
|
|
a3912fb6f175: Waiting
|
|
5be14db589fd: Preparing
|
|
dfdf70f332e3: Preparing
|
|
0b2fe8f2cfad: Preparing
|
|
2e036d3abb44: Preparing
|
|
8f3c4fe9abf6: Preparing
|
|
59c764dd0b72: Preparing
|
|
5be14db589fd: Waiting
|
|
dfdf70f332e3: Waiting
|
|
0b2fe8f2cfad: Waiting
|
|
2e036d3abb44: Waiting
|
|
8f3c4fe9abf6: Waiting
|
|
5ee30e01e4b7: Preparing
|
|
a1850b6363e3: Preparing
|
|
609d47eb5922: Preparing
|
|
b87171b618eb: Preparing
|
|
3ee6c857059e: Preparing
|
|
0bbc5a99bf7e: Preparing
|
|
b99ef97f18d3: Preparing
|
|
59c764dd0b72: Waiting
|
|
5ee30e01e4b7: Waiting
|
|
a1850b6363e3: Waiting
|
|
609d47eb5922: Waiting
|
|
b87171b618eb: Waiting
|
|
3ee6c857059e: Waiting
|
|
0bbc5a99bf7e: Waiting
|
|
0540154698bb: Preparing
|
|
acd66fc0870d: Preparing
|
|
b99ef97f18d3: Waiting
|
|
0540154698bb: Waiting
|
|
ee811145a141: Preparing
|
|
2872fafb128e: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
acd66fc0870d: Waiting
|
|
ee811145a141: Waiting
|
|
2872fafb128e: Waiting
|
|
fe6d8881187d: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
29afcc45a7cd: Pushed
|
|
337517890bf7: Pushed
|
|
21505fae7438: Pushed
|
|
cb1d5f75a0a3: Pushed
|
|
00bcf7ab859f: Pushed
|
|
4cbb36f9b1a3: Pushed
|
|
d948ffa88c8f: Pushed
|
|
75c8fbe3aac2: Pushed
|
|
e1a2875ae1b0: Pushed
|
|
6396c3525cd9: Pushed
|
|
ed00b2c2f10b: Pushed
|
|
912a259f4f51: Pushed
|
|
a3912fb6f175: Pushed
|
|
dfdf70f332e3: Pushed
|
|
0b2fe8f2cfad: Pushed
|
|
2e036d3abb44: Pushed
|
|
8f3c4fe9abf6: Pushed
|
|
59c764dd0b72: Pushed
|
|
a1850b6363e3: Pushed
|
|
609d47eb5922: Pushed
|
|
5ee30e01e4b7: Pushed
|
|
b87171b618eb: Pushed
|
|
3ee6c857059e: Pushed
|
|
b99ef97f18d3: Pushed
|
|
0bbc5a99bf7e: Pushed
|
|
0540154698bb: Pushed
|
|
acd66fc0870d: Pushed
|
|
ee811145a141: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
5be14db589fd: Pushed
|
|
b43408d5f11b: Pushed
|
|
2872fafb128e: Pushed
|
|
latest: digest: sha256:a3f8a8381ba12a340bcbe31d1b53b63e6ebb9edf6a4cb301731fb88b8ac18260 size: 7171
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 115.2kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 9dee6301717c
|
|
Step 2/23 : USER root
|
|
---> Running in 98efeb425d7c
|
|
Removing intermediate container 98efeb425d7c
|
|
---> 2c0280bb038c
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 8db64394cfc6
|
|
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:11 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 13s (1705 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 8db64394cfc6
|
|
---> 72177bcedffa
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in c4b3580100f2
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container c4b3580100f2
|
|
---> f19720cc1825
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in fa38a3a6e452
|
|
Removing intermediate container fa38a3a6e452
|
|
---> 0df9fbe7690c
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in c49ccf5eb673
|
|
Removing intermediate container c49ccf5eb673
|
|
---> 9e52a82a9d77
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 2b9c71643547
|
|
Removing intermediate container 2b9c71643547
|
|
---> ddef95cbffcb
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in f19f3a162f05
|
|
Removing intermediate container f19f3a162f05
|
|
---> c940c010a0b6
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 444d3ba56b77
|
|
Removing intermediate container 444d3ba56b77
|
|
---> 6aadaf5f2e7b
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 3841c20907b0
|
|
Removing intermediate container 3841c20907b0
|
|
---> 17318470a4ab
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 94bda28b4062
|
|
Removing intermediate container 94bda28b4062
|
|
---> 833b55dd40b7
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 07a1dd1b1aa2
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 1b640380a0d2
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 724075271745
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in d18a7e80a3d1
|
|
Removing intermediate container d18a7e80a3d1
|
|
---> b6b7cfcfba4c
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 6131f1dab1ce
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in e0086c217208
|
|
Removing intermediate container e0086c217208
|
|
---> af2d853edbd5
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in e5aeeb368a82
|
|
Removing intermediate container e5aeeb368a82
|
|
---> 976f300a8ea8
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in b1af614664ab
|
|
Removing intermediate container b1af614664ab
|
|
---> dace208a6c13
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> e24dfe65b237
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in e325d8b328bf
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container e325d8b328bf
|
|
---> 031189f77002
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> ff7d5772328c
|
|
Step 23/23 : USER docker
|
|
---> Running in 50d521194b3c
|
|
Removing intermediate container 50d521194b3c
|
|
---> 45bdc715be56
|
|
Successfully built 45bdc715be56
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
93b85615c46b: Preparing
|
|
a1e64f090bb8: Preparing
|
|
f9c1bc2efa35: Preparing
|
|
4dab8d408a39: Preparing
|
|
eef156306856: Preparing
|
|
8c3f6a28124c: Preparing
|
|
7b77f090fa11: Preparing
|
|
65489e1e592b: Preparing
|
|
680659bb2184: Preparing
|
|
0e8252ea4a41: Preparing
|
|
59cc5e238945: Preparing
|
|
56f684957ad4: Preparing
|
|
944d9422ddba: Preparing
|
|
a95f1c561385: Preparing
|
|
cb1d5f75a0a3: Preparing
|
|
337517890bf7: Preparing
|
|
29afcc45a7cd: Preparing
|
|
21505fae7438: Preparing
|
|
00bcf7ab859f: Preparing
|
|
4cbb36f9b1a3: Preparing
|
|
75c8fbe3aac2: Preparing
|
|
6396c3525cd9: Preparing
|
|
e1a2875ae1b0: Preparing
|
|
d948ffa88c8f: Preparing
|
|
ed00b2c2f10b: Preparing
|
|
912a259f4f51: Preparing
|
|
a3912fb6f175: Preparing
|
|
5be14db589fd: Preparing
|
|
dfdf70f332e3: Preparing
|
|
0b2fe8f2cfad: Preparing
|
|
2e036d3abb44: Preparing
|
|
8f3c4fe9abf6: Preparing
|
|
59c764dd0b72: Preparing
|
|
5ee30e01e4b7: Preparing
|
|
a1850b6363e3: Preparing
|
|
609d47eb5922: Preparing
|
|
b87171b618eb: Preparing
|
|
3ee6c857059e: Preparing
|
|
0bbc5a99bf7e: Preparing
|
|
b99ef97f18d3: Preparing
|
|
0540154698bb: Preparing
|
|
acd66fc0870d: Preparing
|
|
ee811145a141: Preparing
|
|
2872fafb128e: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
ed00b2c2f10b: Waiting
|
|
912a259f4f51: Waiting
|
|
a3912fb6f175: Waiting
|
|
5be14db589fd: Waiting
|
|
dfdf70f332e3: Waiting
|
|
0b2fe8f2cfad: Waiting
|
|
2e036d3abb44: Waiting
|
|
8f3c4fe9abf6: Waiting
|
|
59c764dd0b72: Waiting
|
|
5ee30e01e4b7: Waiting
|
|
a1850b6363e3: Waiting
|
|
609d47eb5922: Waiting
|
|
b87171b618eb: Waiting
|
|
3ee6c857059e: Waiting
|
|
0bbc5a99bf7e: Waiting
|
|
b99ef97f18d3: Waiting
|
|
0540154698bb: Waiting
|
|
acd66fc0870d: Waiting
|
|
8c3f6a28124c: Waiting
|
|
ee811145a141: Waiting
|
|
7b77f090fa11: Waiting
|
|
2872fafb128e: Waiting
|
|
65489e1e592b: Waiting
|
|
fe6d8881187d: Waiting
|
|
680659bb2184: Waiting
|
|
23135df75b44: Waiting
|
|
0e8252ea4a41: Waiting
|
|
b43408d5f11b: Waiting
|
|
59cc5e238945: Waiting
|
|
56f684957ad4: Waiting
|
|
944d9422ddba: Waiting
|
|
a95f1c561385: Waiting
|
|
cb1d5f75a0a3: Waiting
|
|
337517890bf7: Waiting
|
|
29afcc45a7cd: Waiting
|
|
21505fae7438: Waiting
|
|
00bcf7ab859f: Waiting
|
|
d948ffa88c8f: Waiting
|
|
4cbb36f9b1a3: Waiting
|
|
75c8fbe3aac2: Waiting
|
|
6396c3525cd9: Waiting
|
|
e1a2875ae1b0: Waiting
|
|
f9c1bc2efa35: Pushed
|
|
a1e64f090bb8: Pushed
|
|
4dab8d408a39: Pushed
|
|
eef156306856: Pushed
|
|
93b85615c46b: Pushed
|
|
8c3f6a28124c: Pushed
|
|
65489e1e592b: Pushed
|
|
7b77f090fa11: Pushed
|
|
0e8252ea4a41: Pushed
|
|
680659bb2184: Pushed
|
|
59cc5e238945: Pushed
|
|
56f684957ad4: Pushed
|
|
944d9422ddba: Pushed
|
|
cb1d5f75a0a3: Pushed
|
|
29afcc45a7cd: Pushed
|
|
337517890bf7: Pushed
|
|
21505fae7438: Pushed
|
|
00bcf7ab859f: Pushed
|
|
75c8fbe3aac2: Pushed
|
|
4cbb36f9b1a3: Pushed
|
|
6396c3525cd9: Pushed
|
|
d948ffa88c8f: Pushed
|
|
ed00b2c2f10b: Pushed
|
|
e1a2875ae1b0: Pushed
|
|
912a259f4f51: Pushed
|
|
a3912fb6f175: Pushed
|
|
dfdf70f332e3: Pushed
|
|
0b2fe8f2cfad: Pushed
|
|
8f3c4fe9abf6: Pushed
|
|
2e036d3abb44: Pushed
|
|
59c764dd0b72: Pushed
|
|
5ee30e01e4b7: Pushed
|
|
a1850b6363e3: Pushed
|
|
609d47eb5922: Pushed
|
|
b87171b618eb: Pushed
|
|
3ee6c857059e: Pushed
|
|
0bbc5a99bf7e: Pushed
|
|
b99ef97f18d3: Pushed
|
|
0540154698bb: Pushed
|
|
acd66fc0870d: Pushed
|
|
ee811145a141: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
a95f1c561385: Pushed
|
|
5be14db589fd: Pushed
|
|
b43408d5f11b: Pushed
|
|
2872fafb128e: Pushed
|
|
latest: digest: sha256:81e1a018c88a65bb46f46f6cb138cb47ee2220d7c32f775e76e5738c33998384 size: 10077
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 118.3kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 45bdc715be56
|
|
Step 2/23 : USER root
|
|
---> Running in 473568bd250b
|
|
Removing intermediate container 473568bd250b
|
|
---> fc0acf5c7dcf
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 7a81b64eb991
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:7 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 11s (1976 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 7a81b64eb991
|
|
---> ae32c3d8799e
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in ae2370ac4c22
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container ae2370ac4c22
|
|
---> 917af5c2e478
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in c3e7ffae87e1
|
|
Removing intermediate container c3e7ffae87e1
|
|
---> ab4e8aeba026
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 04bce238b4ea
|
|
Removing intermediate container 04bce238b4ea
|
|
---> 9b5b4c303680
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in cf7a31b92a1e
|
|
Removing intermediate container cf7a31b92a1e
|
|
---> c87c49cb0c0e
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in f58f5962eb9c
|
|
Removing intermediate container f58f5962eb9c
|
|
---> 70ee11004a68
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 3a9949b51689
|
|
Removing intermediate container 3a9949b51689
|
|
---> 897352d95b34
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in cf84394ead39
|
|
Removing intermediate container cf84394ead39
|
|
---> 7f06ae17d9da
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in 725531e4dd90
|
|
Removing intermediate container 725531e4dd90
|
|
---> cc1f9a769b79
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> f915ceb27330
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> f8eb9b418104
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 048fc1feab61
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in c14c015f820f
|
|
Removing intermediate container c14c015f820f
|
|
---> 26efae8fc266
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 492e5403464d
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 3d56bf7f21c7
|
|
Removing intermediate container 3d56bf7f21c7
|
|
---> daf9e4fed4ac
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 3f4abce4178a
|
|
Removing intermediate container 3f4abce4178a
|
|
---> 93b44b89c5ca
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 756fc0d071ff
|
|
Removing intermediate container 756fc0d071ff
|
|
---> e14547212dbd
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 2fab178b89b6
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in f46592114770
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container f46592114770
|
|
---> a50585292468
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 78d437127769
|
|
Step 23/23 : USER docker
|
|
---> Running in 59b6654753c9
|
|
Removing intermediate container 59b6654753c9
|
|
---> d1707134f4e6
|
|
Successfully built d1707134f4e6
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
e00075450cf0: Preparing
|
|
898d7a5ce475: Preparing
|
|
509a680473c2: Preparing
|
|
62934002eeae: Preparing
|
|
0859067c22cf: Preparing
|
|
8be95d03f678: Preparing
|
|
e3e2b8c2c104: Preparing
|
|
02030aba5cfe: Preparing
|
|
275e825c61b6: Preparing
|
|
201d9455d7d5: Preparing
|
|
6f5dbcb7201f: Preparing
|
|
6e0093acb7af: Preparing
|
|
9ca26d36670b: Preparing
|
|
dff25be0e74b: Preparing
|
|
93b85615c46b: Preparing
|
|
a1e64f090bb8: Preparing
|
|
f9c1bc2efa35: Preparing
|
|
4dab8d408a39: Preparing
|
|
eef156306856: Preparing
|
|
8c3f6a28124c: Preparing
|
|
7b77f090fa11: Preparing
|
|
65489e1e592b: Preparing
|
|
680659bb2184: Preparing
|
|
0e8252ea4a41: Preparing
|
|
59cc5e238945: Preparing
|
|
56f684957ad4: Preparing
|
|
944d9422ddba: Preparing
|
|
a95f1c561385: Preparing
|
|
cb1d5f75a0a3: Preparing
|
|
337517890bf7: Preparing
|
|
29afcc45a7cd: Preparing
|
|
21505fae7438: Preparing
|
|
00bcf7ab859f: Preparing
|
|
4cbb36f9b1a3: Preparing
|
|
75c8fbe3aac2: Preparing
|
|
6396c3525cd9: Preparing
|
|
e1a2875ae1b0: Preparing
|
|
d948ffa88c8f: Preparing
|
|
ed00b2c2f10b: Preparing
|
|
912a259f4f51: Preparing
|
|
a3912fb6f175: Preparing
|
|
5be14db589fd: Preparing
|
|
dfdf70f332e3: Preparing
|
|
0b2fe8f2cfad: Preparing
|
|
2e036d3abb44: Preparing
|
|
8f3c4fe9abf6: Preparing
|
|
59c764dd0b72: Preparing
|
|
5ee30e01e4b7: Preparing
|
|
a1850b6363e3: Preparing
|
|
609d47eb5922: Preparing
|
|
b87171b618eb: Preparing
|
|
3ee6c857059e: Preparing
|
|
0bbc5a99bf7e: Preparing
|
|
b99ef97f18d3: Preparing
|
|
0540154698bb: Preparing
|
|
acd66fc0870d: Preparing
|
|
ee811145a141: Preparing
|
|
2872fafb128e: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
29afcc45a7cd: Waiting
|
|
21505fae7438: Waiting
|
|
00bcf7ab859f: Waiting
|
|
4cbb36f9b1a3: Waiting
|
|
75c8fbe3aac2: Waiting
|
|
6396c3525cd9: Waiting
|
|
e1a2875ae1b0: Waiting
|
|
d948ffa88c8f: Waiting
|
|
ed00b2c2f10b: Waiting
|
|
912a259f4f51: Waiting
|
|
a3912fb6f175: Waiting
|
|
5be14db589fd: Waiting
|
|
dfdf70f332e3: Waiting
|
|
0b2fe8f2cfad: Waiting
|
|
2e036d3abb44: Waiting
|
|
8be95d03f678: Waiting
|
|
e3e2b8c2c104: Waiting
|
|
02030aba5cfe: Waiting
|
|
275e825c61b6: Waiting
|
|
201d9455d7d5: Waiting
|
|
6f5dbcb7201f: Waiting
|
|
6e0093acb7af: Waiting
|
|
680659bb2184: Waiting
|
|
9ca26d36670b: Waiting
|
|
0e8252ea4a41: Waiting
|
|
59cc5e238945: Waiting
|
|
56f684957ad4: Waiting
|
|
944d9422ddba: Waiting
|
|
a95f1c561385: Waiting
|
|
cb1d5f75a0a3: Waiting
|
|
dff25be0e74b: Waiting
|
|
337517890bf7: Waiting
|
|
93b85615c46b: Waiting
|
|
eef156306856: Waiting
|
|
a1e64f090bb8: Waiting
|
|
8c3f6a28124c: Waiting
|
|
7b77f090fa11: Waiting
|
|
f9c1bc2efa35: Waiting
|
|
4dab8d408a39: Waiting
|
|
65489e1e592b: Waiting
|
|
8f3c4fe9abf6: Waiting
|
|
59c764dd0b72: Waiting
|
|
b87171b618eb: Waiting
|
|
5ee30e01e4b7: Waiting
|
|
a1850b6363e3: Waiting
|
|
3ee6c857059e: Waiting
|
|
609d47eb5922: Waiting
|
|
b99ef97f18d3: Waiting
|
|
0540154698bb: Waiting
|
|
acd66fc0870d: Waiting
|
|
ee811145a141: Waiting
|
|
2872fafb128e: Waiting
|
|
fe6d8881187d: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
0bbc5a99bf7e: Waiting
|
|
e00075450cf0: Pushed
|
|
509a680473c2: Pushed
|
|
0859067c22cf: Pushed
|
|
898d7a5ce475: Pushed
|
|
62934002eeae: Pushed
|
|
8be95d03f678: Pushed
|
|
e3e2b8c2c104: Pushed
|
|
02030aba5cfe: Pushed
|
|
275e825c61b6: Pushed
|
|
201d9455d7d5: Pushed
|
|
6f5dbcb7201f: Pushed
|
|
6e0093acb7af: Pushed
|
|
9ca26d36670b: Pushed
|
|
93b85615c46b: Pushed
|
|
a1e64f090bb8: Pushed
|
|
f9c1bc2efa35: Pushed
|
|
4dab8d408a39: Pushed
|
|
eef156306856: Pushed
|
|
8c3f6a28124c: Pushed
|
|
7b77f090fa11: Pushed
|
|
65489e1e592b: Pushed
|
|
680659bb2184: Pushed
|
|
0e8252ea4a41: Pushed
|
|
944d9422ddba: Pushed
|
|
59cc5e238945: Pushed
|
|
56f684957ad4: Pushed
|
|
337517890bf7: Pushed
|
|
cb1d5f75a0a3: Pushed
|
|
29afcc45a7cd: Pushed
|
|
21505fae7438: Pushed
|
|
00bcf7ab859f: Pushed
|
|
4cbb36f9b1a3: Pushed
|
|
75c8fbe3aac2: Pushed
|
|
6396c3525cd9: Pushed
|
|
e1a2875ae1b0: Pushed
|
|
d948ffa88c8f: Pushed
|
|
912a259f4f51: Pushed
|
|
ed00b2c2f10b: Pushed
|
|
a3912fb6f175: Pushed
|
|
dfdf70f332e3: Pushed
|
|
0b2fe8f2cfad: Pushed
|
|
2e036d3abb44: Pushed
|
|
8f3c4fe9abf6: Pushed
|
|
59c764dd0b72: Pushed
|
|
5ee30e01e4b7: Pushed
|
|
a1850b6363e3: Pushed
|
|
609d47eb5922: Pushed
|
|
b87171b618eb: Pushed
|
|
3ee6c857059e: Pushed
|
|
b99ef97f18d3: Pushed
|
|
0bbc5a99bf7e: Pushed
|
|
0540154698bb: Pushed
|
|
acd66fc0870d: Pushed
|
|
ee811145a141: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
a95f1c561385: Pushed
|
|
dff25be0e74b: Pushed
|
|
5be14db589fd: Pushed
|
|
b43408d5f11b: Pushed
|
|
2872fafb128e: Pushed
|
|
latest: digest: sha256:4faec4a1262df5b33f03c4ea1e86e5904cf9567219c4efdd5272bf43ff10cf99 size: 12983
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 120.8kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> d1707134f4e6
|
|
Step 2/23 : USER root
|
|
---> Running in f6009c49ef8b
|
|
Removing intermediate container f6009c49ef8b
|
|
---> 02b26ed784fa
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 5a1f5c661f93
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:6 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 13s (1716 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 5a1f5c661f93
|
|
---> 1e1acd2ce8dc
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 143a2fa11808
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 143a2fa11808
|
|
---> b73ff66e0e62
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 0e7c2fbb0d54
|
|
Removing intermediate container 0e7c2fbb0d54
|
|
---> 037c9e18c25d
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 949d760bacfd
|
|
Removing intermediate container 949d760bacfd
|
|
---> 0526c6390eb4
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in b97705b038b2
|
|
Removing intermediate container b97705b038b2
|
|
---> 53122d92c155
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 9c87ad52deff
|
|
Removing intermediate container 9c87ad52deff
|
|
---> 3d590609d77b
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 6f51cbde3b9a
|
|
Removing intermediate container 6f51cbde3b9a
|
|
---> ba18efb5f805
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in a11e93764fb7
|
|
Removing intermediate container a11e93764fb7
|
|
---> 5353e4e6d154
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in d9da08ad7351
|
|
Removing intermediate container d9da08ad7351
|
|
---> 14b76b24469e
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 117156701878
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 51ee91caeecd
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> aac5c712c1f2
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 0d3a797a5cfa
|
|
Removing intermediate container 0d3a797a5cfa
|
|
---> 6dcfb3ad5fd4
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 636bf9f703be
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in ad11515b6a6f
|
|
Removing intermediate container ad11515b6a6f
|
|
---> 9ed04d668e75
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 0479f6a64e04
|
|
Removing intermediate container 0479f6a64e04
|
|
---> 3502d9d5c0b7
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 8447be997d8c
|
|
Removing intermediate container 8447be997d8c
|
|
---> 736325bb4083
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> da7443613663
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in a828325dadd2
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container a828325dadd2
|
|
---> 81532c3356fe
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> e48c75cb2c66
|
|
Step 23/23 : USER docker
|
|
---> Running in a8d6bff397ca
|
|
Removing intermediate container a8d6bff397ca
|
|
---> 8f20ce5135c3
|
|
Successfully built 8f20ce5135c3
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
75da3c36bbf2: Preparing
|
|
1e8ae8b72456: Preparing
|
|
0f2c92cc70b9: Preparing
|
|
2d1aca500279: Preparing
|
|
8e891881dc68: Preparing
|
|
8d3ed8c29f55: Preparing
|
|
afc877124afa: Preparing
|
|
e2355cd40c7e: Preparing
|
|
f797fbcceb89: Preparing
|
|
978bc2671301: Preparing
|
|
dbfcada07c9e: Preparing
|
|
3b022193e08c: Preparing
|
|
da2172c7dcdf: Preparing
|
|
416273c154c8: Preparing
|
|
e00075450cf0: Preparing
|
|
898d7a5ce475: Preparing
|
|
509a680473c2: Preparing
|
|
62934002eeae: Preparing
|
|
0859067c22cf: Preparing
|
|
8be95d03f678: Preparing
|
|
e3e2b8c2c104: Preparing
|
|
02030aba5cfe: Preparing
|
|
275e825c61b6: Preparing
|
|
201d9455d7d5: Preparing
|
|
6f5dbcb7201f: Preparing
|
|
6e0093acb7af: Preparing
|
|
9ca26d36670b: Preparing
|
|
dff25be0e74b: Preparing
|
|
93b85615c46b: Preparing
|
|
a1e64f090bb8: Preparing
|
|
f9c1bc2efa35: Preparing
|
|
4dab8d408a39: Preparing
|
|
eef156306856: Preparing
|
|
8c3f6a28124c: Preparing
|
|
7b77f090fa11: Preparing
|
|
65489e1e592b: Preparing
|
|
680659bb2184: Preparing
|
|
0e8252ea4a41: Preparing
|
|
59cc5e238945: Preparing
|
|
56f684957ad4: Preparing
|
|
944d9422ddba: Preparing
|
|
a95f1c561385: Preparing
|
|
cb1d5f75a0a3: Preparing
|
|
337517890bf7: Preparing
|
|
29afcc45a7cd: Preparing
|
|
21505fae7438: Preparing
|
|
00bcf7ab859f: Preparing
|
|
4cbb36f9b1a3: Preparing
|
|
75c8fbe3aac2: Preparing
|
|
6396c3525cd9: Preparing
|
|
e1a2875ae1b0: Preparing
|
|
d948ffa88c8f: Preparing
|
|
ed00b2c2f10b: Preparing
|
|
912a259f4f51: Preparing
|
|
a3912fb6f175: Preparing
|
|
5be14db589fd: Preparing
|
|
dfdf70f332e3: Preparing
|
|
0b2fe8f2cfad: Preparing
|
|
2e036d3abb44: Preparing
|
|
8f3c4fe9abf6: Preparing
|
|
59c764dd0b72: Preparing
|
|
5ee30e01e4b7: Preparing
|
|
a1850b6363e3: Preparing
|
|
609d47eb5922: Preparing
|
|
b87171b618eb: Preparing
|
|
3ee6c857059e: Preparing
|
|
0bbc5a99bf7e: Preparing
|
|
b99ef97f18d3: Preparing
|
|
0540154698bb: Preparing
|
|
acd66fc0870d: Preparing
|
|
ee811145a141: Preparing
|
|
2872fafb128e: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
680659bb2184: Waiting
|
|
0e8252ea4a41: Waiting
|
|
59cc5e238945: Waiting
|
|
56f684957ad4: Waiting
|
|
944d9422ddba: Waiting
|
|
a95f1c561385: Waiting
|
|
cb1d5f75a0a3: Waiting
|
|
337517890bf7: Waiting
|
|
29afcc45a7cd: Waiting
|
|
00bcf7ab859f: Waiting
|
|
4cbb36f9b1a3: Waiting
|
|
75c8fbe3aac2: Waiting
|
|
6396c3525cd9: Waiting
|
|
e1a2875ae1b0: Waiting
|
|
d948ffa88c8f: Waiting
|
|
ed00b2c2f10b: Waiting
|
|
912a259f4f51: Waiting
|
|
a3912fb6f175: Waiting
|
|
5be14db589fd: Waiting
|
|
dfdf70f332e3: Waiting
|
|
0b2fe8f2cfad: Waiting
|
|
2e036d3abb44: Waiting
|
|
8f3c4fe9abf6: Waiting
|
|
59c764dd0b72: Waiting
|
|
5ee30e01e4b7: Waiting
|
|
a1850b6363e3: Waiting
|
|
609d47eb5922: Waiting
|
|
b87171b618eb: Waiting
|
|
3ee6c857059e: Waiting
|
|
0bbc5a99bf7e: Waiting
|
|
0540154698bb: Waiting
|
|
acd66fc0870d: Waiting
|
|
ee811145a141: Waiting
|
|
2872fafb128e: Waiting
|
|
fe6d8881187d: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
8d3ed8c29f55: Waiting
|
|
afc877124afa: Waiting
|
|
e2355cd40c7e: Waiting
|
|
f797fbcceb89: Waiting
|
|
21505fae7438: Waiting
|
|
416273c154c8: Waiting
|
|
e00075450cf0: Waiting
|
|
898d7a5ce475: Waiting
|
|
509a680473c2: Waiting
|
|
62934002eeae: Waiting
|
|
0859067c22cf: Waiting
|
|
8be95d03f678: Waiting
|
|
e3e2b8c2c104: Waiting
|
|
201d9455d7d5: Waiting
|
|
02030aba5cfe: Waiting
|
|
6f5dbcb7201f: Waiting
|
|
275e825c61b6: Waiting
|
|
6e0093acb7af: Waiting
|
|
9ca26d36670b: Waiting
|
|
dff25be0e74b: Waiting
|
|
a1e64f090bb8: Waiting
|
|
93b85615c46b: Waiting
|
|
f9c1bc2efa35: Waiting
|
|
4dab8d408a39: Waiting
|
|
eef156306856: Waiting
|
|
8c3f6a28124c: Waiting
|
|
7b77f090fa11: Waiting
|
|
65489e1e592b: Waiting
|
|
b99ef97f18d3: Waiting
|
|
978bc2671301: Waiting
|
|
dbfcada07c9e: Waiting
|
|
da2172c7dcdf: Waiting
|
|
3b022193e08c: Waiting
|
|
0f2c92cc70b9: Pushed
|
|
1e8ae8b72456: Pushed
|
|
8e891881dc68: Pushed
|
|
2d1aca500279: Pushed
|
|
e2355cd40c7e: Pushed
|
|
afc877124afa: Pushed
|
|
8d3ed8c29f55: Pushed
|
|
f797fbcceb89: Pushed
|
|
75da3c36bbf2: Pushed
|
|
dbfcada07c9e: Pushed
|
|
978bc2671301: Pushed
|
|
3b022193e08c: Pushed
|
|
da2172c7dcdf: Pushed
|
|
898d7a5ce475: Pushed
|
|
509a680473c2: Pushed
|
|
e00075450cf0: Pushed
|
|
62934002eeae: Pushed
|
|
0859067c22cf: Pushed
|
|
8be95d03f678: Pushed
|
|
e3e2b8c2c104: Pushed
|
|
02030aba5cfe: Pushed
|
|
275e825c61b6: Pushed
|
|
201d9455d7d5: Pushed
|
|
6f5dbcb7201f: Pushed
|
|
6e0093acb7af: Pushed
|
|
9ca26d36670b: Pushed
|
|
93b85615c46b: Pushed
|
|
a1e64f090bb8: Pushed
|
|
4dab8d408a39: Pushed
|
|
f9c1bc2efa35: Pushed
|
|
eef156306856: Pushed
|
|
8c3f6a28124c: Pushed
|
|
7b77f090fa11: Pushed
|
|
65489e1e592b: Pushed
|
|
680659bb2184: Pushed
|
|
0e8252ea4a41: Pushed
|
|
59cc5e238945: Pushed
|
|
56f684957ad4: Pushed
|
|
944d9422ddba: Pushed
|
|
cb1d5f75a0a3: Pushed
|
|
337517890bf7: Pushed
|
|
29afcc45a7cd: Pushed
|
|
21505fae7438: Pushed
|
|
00bcf7ab859f: Pushed
|
|
4cbb36f9b1a3: Pushed
|
|
75c8fbe3aac2: Pushed
|
|
6396c3525cd9: Pushed
|
|
d948ffa88c8f: Pushed
|
|
e1a2875ae1b0: Pushed
|
|
912a259f4f51: Pushed
|
|
ed00b2c2f10b: Pushed
|
|
a3912fb6f175: Pushed
|
|
dfdf70f332e3: Pushed
|
|
0b2fe8f2cfad: Pushed
|
|
2e036d3abb44: Pushed
|
|
8f3c4fe9abf6: Pushed
|
|
59c764dd0b72: Pushed
|
|
5ee30e01e4b7: Pushed
|
|
a1850b6363e3: Pushed
|
|
609d47eb5922: Pushed
|
|
b87171b618eb: Pushed
|
|
3ee6c857059e: Pushed
|
|
0bbc5a99bf7e: Pushed
|
|
b99ef97f18d3: Pushed
|
|
0540154698bb: Pushed
|
|
acd66fc0870d: Pushed
|
|
ee811145a141: Pushed
|
|
416273c154c8: Pushed
|
|
fe6d8881187d: Pushed
|
|
dff25be0e74b: Pushed
|
|
23135df75b44: Pushed
|
|
a95f1c561385: Pushed
|
|
5be14db589fd: Pushed
|
|
b43408d5f11b: Pushed
|
|
2872fafb128e: Pushed
|
|
latest: digest: sha256:20d144bf846ee57527c2ad3dc2f10d565e098581c2c0b3ae08fbbaa37e2d1dc5 size: 15889
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 123.4kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 8f20ce5135c3
|
|
Step 2/23 : USER root
|
|
---> Running in bed49e9ccd16
|
|
Removing intermediate container bed49e9ccd16
|
|
---> 8db2918bf017
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in fb4432e9df7a
|
|
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:8 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:9 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:12 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Fetched 21.5 MB in 11s (1989 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container fb4432e9df7a
|
|
---> 194141ecd888
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in 8b49cc0dc658
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container 8b49cc0dc658
|
|
---> 4cf0addbef87
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 50938693c64a
|
|
Removing intermediate container 50938693c64a
|
|
---> a4f708b45661
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 38ebbcd752ee
|
|
Removing intermediate container 38ebbcd752ee
|
|
---> 8a671902cd37
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 50f779a23592
|
|
Removing intermediate container 50f779a23592
|
|
---> 5bda4614f6fd
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in a931581efd00
|
|
Removing intermediate container a931581efd00
|
|
---> 21a772ea0f01
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 8e7037498e8f
|
|
Removing intermediate container 8e7037498e8f
|
|
---> d9f6c5c26b41
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in 7c9a5a9bf0ad
|
|
Removing intermediate container 7c9a5a9bf0ad
|
|
---> d84a6d88ed0d
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
|
|
---> Running in bfef13a6f3c4
|
|
Removing intermediate container bfef13a6f3c4
|
|
---> efc3fc4a1f0c
|
|
Step 12/23 : COPY sec_bootstrap /usr/bin
|
|
---> 8b6c2fec4ac6
|
|
Step 13/23 : COPY get_hosts /usr/bin
|
|
---> 0308dd83a86e
|
|
Step 14/23 : COPY auto_update_hosts /usr/bin
|
|
---> 8d5e1c3e445b
|
|
Step 15/23 : RUN mkdir -p /etc/shorewall
|
|
---> Running in 7ab44473eb26
|
|
Removing intermediate container 7ab44473eb26
|
|
---> c097798c93d9
|
|
Step 16/23 : COPY shorewall /etc/shorewall
|
|
---> 28ef48239cf0
|
|
Step 17/23 : RUN mkdir -p /etc/opt
|
|
---> Running in 2bbe77ac9553
|
|
Removing intermediate container 2bbe77ac9553
|
|
---> 5bff775cc66f
|
|
Step 18/23 : RUN mkdir -p /project
|
|
---> Running in 5b54a5e1b8da
|
|
Removing intermediate container 5b54a5e1b8da
|
|
---> 6246f15c19d8
|
|
Step 19/23 : WORKDIR /project
|
|
---> Running in 04eecda73dc6
|
|
Removing intermediate container 04eecda73dc6
|
|
---> cdb4813d6b7e
|
|
Step 20/23 : COPY install-vim-plugin.sh .
|
|
---> 5d8ed55b940e
|
|
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
|
---> Running in 2b8a6f76cfb8
|
|
The user `docker' is already a member of `sudo'.
|
|
Removing intermediate container 2b8a6f76cfb8
|
|
---> 75b7d3384090
|
|
Step 22/23 : COPY .vimrc /home/docker
|
|
---> 616f5deea382
|
|
Step 23/23 : USER docker
|
|
---> Running in 763d6342bb79
|
|
Removing intermediate container 763d6342bb79
|
|
---> 6c56d7e2dccd
|
|
Successfully built 6c56d7e2dccd
|
|
Successfully tagged localhost:5000/sec:latest
|
|
|
|
|
|
|
|
===> PUSH IMAGE TO REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker push "localhost:5000/sec"
|
|
|
|
The push refers to repository [localhost:5000/sec]
|
|
bc76decf0396: Preparing
|
|
60795f1194fa: Preparing
|
|
48787a9c3e0a: Preparing
|
|
72e8ecdae678: Preparing
|
|
e2e0a5340342: Preparing
|
|
1ffec6563b4e: Preparing
|
|
9b917d32aab0: Preparing
|
|
84096c74f389: Preparing
|
|
7e47f3de7ed7: Preparing
|
|
27d1cd8e52b4: Preparing
|
|
6b572dc1dda5: Preparing
|
|
2bfccd2f6e7c: Preparing
|
|
5f9958c5d9d2: Preparing
|
|
5cc97da8be98: Preparing
|
|
75da3c36bbf2: Preparing
|
|
1e8ae8b72456: Preparing
|
|
0f2c92cc70b9: Preparing
|
|
2d1aca500279: Preparing
|
|
8e891881dc68: Preparing
|
|
8d3ed8c29f55: Preparing
|
|
afc877124afa: Preparing
|
|
e2355cd40c7e: Preparing
|
|
f797fbcceb89: Preparing
|
|
978bc2671301: Preparing
|
|
dbfcada07c9e: Preparing
|
|
3b022193e08c: Preparing
|
|
da2172c7dcdf: Preparing
|
|
416273c154c8: Preparing
|
|
e00075450cf0: Preparing
|
|
898d7a5ce475: Preparing
|
|
509a680473c2: Preparing
|
|
62934002eeae: Preparing
|
|
0859067c22cf: Preparing
|
|
8be95d03f678: Preparing
|
|
e3e2b8c2c104: Preparing
|
|
02030aba5cfe: Preparing
|
|
275e825c61b6: Preparing
|
|
201d9455d7d5: Preparing
|
|
6f5dbcb7201f: Preparing
|
|
6e0093acb7af: Preparing
|
|
9ca26d36670b: Preparing
|
|
dff25be0e74b: Preparing
|
|
93b85615c46b: Preparing
|
|
a1e64f090bb8: Preparing
|
|
f9c1bc2efa35: Preparing
|
|
4dab8d408a39: Preparing
|
|
eef156306856: Preparing
|
|
8c3f6a28124c: Preparing
|
|
7b77f090fa11: Preparing
|
|
65489e1e592b: Preparing
|
|
680659bb2184: Preparing
|
|
0e8252ea4a41: Preparing
|
|
59cc5e238945: Preparing
|
|
56f684957ad4: Preparing
|
|
944d9422ddba: Preparing
|
|
a95f1c561385: Preparing
|
|
cb1d5f75a0a3: Preparing
|
|
337517890bf7: Preparing
|
|
29afcc45a7cd: Preparing
|
|
21505fae7438: Preparing
|
|
00bcf7ab859f: Preparing
|
|
4cbb36f9b1a3: Preparing
|
|
75c8fbe3aac2: Preparing
|
|
6396c3525cd9: Preparing
|
|
e1a2875ae1b0: Preparing
|
|
d948ffa88c8f: Preparing
|
|
ed00b2c2f10b: Preparing
|
|
912a259f4f51: Preparing
|
|
a3912fb6f175: Preparing
|
|
5be14db589fd: Preparing
|
|
dfdf70f332e3: Preparing
|
|
0b2fe8f2cfad: Preparing
|
|
2e036d3abb44: Preparing
|
|
8f3c4fe9abf6: Preparing
|
|
59c764dd0b72: Preparing
|
|
5ee30e01e4b7: Preparing
|
|
a1850b6363e3: Preparing
|
|
609d47eb5922: Preparing
|
|
b87171b618eb: Preparing
|
|
3ee6c857059e: Preparing
|
|
0bbc5a99bf7e: Preparing
|
|
b99ef97f18d3: Preparing
|
|
0540154698bb: Preparing
|
|
acd66fc0870d: Preparing
|
|
ee811145a141: Preparing
|
|
2872fafb128e: Preparing
|
|
fe6d8881187d: Preparing
|
|
23135df75b44: Preparing
|
|
b43408d5f11b: Preparing
|
|
0859067c22cf: Waiting
|
|
8be95d03f678: Waiting
|
|
e3e2b8c2c104: Waiting
|
|
02030aba5cfe: Waiting
|
|
275e825c61b6: Waiting
|
|
201d9455d7d5: Waiting
|
|
6f5dbcb7201f: Waiting
|
|
6e0093acb7af: Waiting
|
|
9ca26d36670b: Waiting
|
|
dff25be0e74b: Waiting
|
|
93b85615c46b: Waiting
|
|
a1e64f090bb8: Waiting
|
|
f9c1bc2efa35: Waiting
|
|
4dab8d408a39: Waiting
|
|
eef156306856: Waiting
|
|
8c3f6a28124c: Waiting
|
|
7b77f090fa11: Waiting
|
|
65489e1e592b: Waiting
|
|
680659bb2184: Waiting
|
|
0e8252ea4a41: Waiting
|
|
59cc5e238945: Waiting
|
|
56f684957ad4: Waiting
|
|
944d9422ddba: Waiting
|
|
a95f1c561385: Waiting
|
|
cb1d5f75a0a3: Waiting
|
|
337517890bf7: Waiting
|
|
29afcc45a7cd: Waiting
|
|
21505fae7438: Waiting
|
|
00bcf7ab859f: Waiting
|
|
1ffec6563b4e: Waiting
|
|
9b917d32aab0: Waiting
|
|
4cbb36f9b1a3: Waiting
|
|
75c8fbe3aac2: Waiting
|
|
6396c3525cd9: Waiting
|
|
84096c74f389: Waiting
|
|
e1a2875ae1b0: Waiting
|
|
7e47f3de7ed7: Waiting
|
|
27d1cd8e52b4: Waiting
|
|
6b572dc1dda5: Waiting
|
|
2bfccd2f6e7c: Waiting
|
|
5f9958c5d9d2: Waiting
|
|
5cc97da8be98: Waiting
|
|
d948ffa88c8f: Waiting
|
|
ed00b2c2f10b: Waiting
|
|
75da3c36bbf2: Waiting
|
|
912a259f4f51: Waiting
|
|
a3912fb6f175: Waiting
|
|
5be14db589fd: Waiting
|
|
dfdf70f332e3: Waiting
|
|
0b2fe8f2cfad: Waiting
|
|
2e036d3abb44: Waiting
|
|
8f3c4fe9abf6: Waiting
|
|
59c764dd0b72: Waiting
|
|
5ee30e01e4b7: Waiting
|
|
a1850b6363e3: Waiting
|
|
1e8ae8b72456: Waiting
|
|
0f2c92cc70b9: Waiting
|
|
609d47eb5922: Waiting
|
|
b87171b618eb: Waiting
|
|
3ee6c857059e: Waiting
|
|
0bbc5a99bf7e: Waiting
|
|
2d1aca500279: Waiting
|
|
8e891881dc68: Waiting
|
|
b99ef97f18d3: Waiting
|
|
0540154698bb: Waiting
|
|
acd66fc0870d: Waiting
|
|
ee811145a141: Waiting
|
|
8d3ed8c29f55: Waiting
|
|
2872fafb128e: Waiting
|
|
afc877124afa: Waiting
|
|
978bc2671301: Waiting
|
|
fe6d8881187d: Waiting
|
|
dbfcada07c9e: Waiting
|
|
23135df75b44: Waiting
|
|
b43408d5f11b: Waiting
|
|
3b022193e08c: Waiting
|
|
e2355cd40c7e: Waiting
|
|
da2172c7dcdf: Waiting
|
|
f797fbcceb89: Waiting
|
|
416273c154c8: Waiting
|
|
e00075450cf0: Waiting
|
|
898d7a5ce475: Waiting
|
|
509a680473c2: Waiting
|
|
62934002eeae: Waiting
|
|
60795f1194fa: Pushed
|
|
48787a9c3e0a: Pushed
|
|
bc76decf0396: Pushed
|
|
72e8ecdae678: Pushed
|
|
e2e0a5340342: Pushed
|
|
1ffec6563b4e: Pushed
|
|
9b917d32aab0: Pushed
|
|
7e47f3de7ed7: Pushed
|
|
84096c74f389: Pushed
|
|
6b572dc1dda5: Pushed
|
|
27d1cd8e52b4: Pushed
|
|
2bfccd2f6e7c: Pushed
|
|
1e8ae8b72456: Pushed
|
|
0f2c92cc70b9: Pushed
|
|
5f9958c5d9d2: Pushed
|
|
2d1aca500279: Pushed
|
|
8d3ed8c29f55: Pushed
|
|
8e891881dc68: Pushed
|
|
75da3c36bbf2: Pushed
|
|
afc877124afa: Pushed
|
|
e2355cd40c7e: Pushed
|
|
f797fbcceb89: Pushed
|
|
978bc2671301: Pushed
|
|
dbfcada07c9e: Pushed
|
|
3b022193e08c: Pushed
|
|
da2172c7dcdf: Pushed
|
|
898d7a5ce475: Pushed
|
|
e00075450cf0: Pushed
|
|
509a680473c2: Pushed
|
|
62934002eeae: Pushed
|
|
0859067c22cf: Pushed
|
|
8be95d03f678: Pushed
|
|
e3e2b8c2c104: Pushed
|
|
275e825c61b6: Pushed
|
|
02030aba5cfe: Pushed
|
|
201d9455d7d5: Pushed
|
|
6f5dbcb7201f: Pushed
|
|
9ca26d36670b: Pushed
|
|
6e0093acb7af: Pushed
|
|
93b85615c46b: Pushed
|
|
a1e64f090bb8: Pushed
|
|
f9c1bc2efa35: Pushed
|
|
4dab8d408a39: Pushed
|
|
eef156306856: Pushed
|
|
8c3f6a28124c: Pushed
|
|
7b77f090fa11: Pushed
|
|
65489e1e592b: Pushed
|
|
680659bb2184: Pushed
|
|
0e8252ea4a41: Pushed
|
|
59cc5e238945: Pushed
|
|
56f684957ad4: Pushed
|
|
944d9422ddba: Pushed
|
|
cb1d5f75a0a3: Pushed
|
|
337517890bf7: Pushed
|
|
29afcc45a7cd: Pushed
|
|
21505fae7438: Pushed
|
|
00bcf7ab859f: Pushed
|
|
4cbb36f9b1a3: Pushed
|
|
75c8fbe3aac2: Pushed
|
|
6396c3525cd9: Pushed
|
|
e1a2875ae1b0: Pushed
|
|
d948ffa88c8f: Pushed
|
|
ed00b2c2f10b: Pushed
|
|
912a259f4f51: Pushed
|
|
a3912fb6f175: Pushed
|
|
dff25be0e74b: Pushed
|
|
dfdf70f332e3: Pushed
|
|
416273c154c8: Pushed
|
|
2e036d3abb44: Pushed
|
|
0b2fe8f2cfad: Pushed
|
|
8f3c4fe9abf6: Pushed
|
|
59c764dd0b72: Pushed
|
|
5cc97da8be98: Pushed
|
|
5ee30e01e4b7: Pushed
|
|
a1850b6363e3: Pushed
|
|
609d47eb5922: Pushed
|
|
b87171b618eb: Pushed
|
|
3ee6c857059e: Pushed
|
|
0bbc5a99bf7e: Pushed
|
|
b99ef97f18d3: Pushed
|
|
0540154698bb: Pushed
|
|
acd66fc0870d: Pushed
|
|
ee811145a141: Pushed
|
|
fe6d8881187d: Pushed
|
|
23135df75b44: Pushed
|
|
a95f1c561385: Pushed
|
|
5be14db589fd: Pushed
|
|
b43408d5f11b: Pushed
|
|
2872fafb128e: Pushed
|
|
latest: digest: sha256:8cf5d23a98fde48e9ddd498a3c8e864194b844a2f865207ce8f8c564274132da size: 18795
|
|
|
|
|
|
===> SPIN UP MASTER NODE
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d master
|
|
|
|
Creating hybrid_master_1 ...
|
|
[1A[2K
|
|
Creating hybrid_master_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SPIN UP WORKER NODES
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d worker
|
|
|
|
Creating hybrid_worker_1 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
|
|
SwarmLab.io
|
|
$ docker-compose scale worker=2
|
|
|
|
The scale command is deprecated. Use the up command with the --scale flag instead.
|
|
Starting hybrid_worker_1 ...
|
|
[1A[2K
|
|
Starting hybrid_worker_1 ... [32mdone[0m
|
|
[1BCreating hybrid_worker_2 ...
|
|
[1A[2K
|
|
Creating hybrid_worker_2 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> SWARMLAB READY
|
|
|
|
## .
|
|
## ## ## ==
|
|
## ## ## ## ## ===
|
|
/"""""""""""""""""\___/ ===
|
|
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
|
\______ o __/
|
|
\ \ __/
|
|
\____\_______/
|
|
|
|
MPICH Swarmlab.io
|
|
|
|
==============================================================
|
|
|
|
To run SEC programs in an interative shell:
|
|
1. Login to master node:
|
|
Using Docker through command wrapper:
|
|
$ swarmlab-sec login
|
|
|
|
Or using SSH with keys through exposed port:
|
|
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
|
|
where [localhost] could be changed to the host IP of master node
|
|
|
|
2. Execute programs inside master node, for example:
|
|
$ sudo su
|
|
# apt update
|
|
*----------------------------------------------------*
|
|
| Default hostfile of connected nodes in the swarmlab |
|
|
| is automatically updated at /etc/opt/hosts |
|
|
| To obtain hostfile manually: $ get_hosts > hosts |
|
|
* ---------------------------------------------------*
|
|
|
|
|
|
ERROR: unknown parameter " up"
|
|
|
|
--------------
|
|
SwarmLab.io
|
|
--------------
|
|
|
|
USAGE: ./swarmlab-sec [COMMAND] [OPTIONS]
|
|
|
|
Examples of [COMMAND] can be:
|
|
create: create swarmlab-sec
|
|
mkdir WORKdir; cd WORKdir; swarmlab-sec create
|
|
|
|
up: start swarmlab-sec
|
|
swarmlab-sec up size=10
|
|
|
|
scale: resize the swarmlab-sec
|
|
swarmlab-sec scale size=30
|
|
|
|
reload: rebuild image and distribute to nodes
|
|
swarmlab-sec reload size=15
|
|
|
|
login: login to Docker container of MPI master node for interactive usage
|
|
swarmlab-sec login
|
|
|
|
exec: execute shell command at the MPI master node
|
|
swarmlab-sec exec [SHELL COMMAND]
|
|
|
|
down: shutdown swarmlab-sec
|
|
swarmlab-sec down
|
|
|
|
clean: remove images in the system
|
|
swarmlab-sec clean
|
|
|
|
list: show running containers of swarmlab-sec
|
|
swarmlab-sec list
|
|
|
|
help: show this message
|
|
swarmlab-sec help
|
|
|
|
|
|
ERROR: unknown parameter " up size"
|
|
|
|
--------------
|
|
SwarmLab.io
|
|
--------------
|
|
|
|
USAGE: ./swarmlab-sec [COMMAND] [OPTIONS]
|
|
|
|
Examples of [COMMAND] can be:
|
|
create: create swarmlab-sec
|
|
mkdir WORKdir; cd WORKdir; swarmlab-sec create
|
|
|
|
up: start swarmlab-sec
|
|
swarmlab-sec up size=10
|
|
|
|
scale: resize the swarmlab-sec
|
|
swarmlab-sec scale size=30
|
|
|
|
reload: rebuild image and distribute to nodes
|
|
swarmlab-sec reload size=15
|
|
|
|
login: login to Docker container of MPI master node for interactive usage
|
|
swarmlab-sec login
|
|
|
|
exec: execute shell command at the MPI master node
|
|
swarmlab-sec exec [SHELL COMMAND]
|
|
|
|
down: shutdown swarmlab-sec
|
|
swarmlab-sec down
|
|
|
|
clean: remove images in the system
|
|
swarmlab-sec clean
|
|
|
|
list: show running containers of swarmlab-sec
|
|
swarmlab-sec list
|
|
|
|
help: show this message
|
|
swarmlab-sec help
|
|
|
|
|
|
>>> Load Local
|
|
|
|
|
|
===> CLEAN UP SWARMLAB
|
|
|
|
SwarmLab.io
|
|
$ docker-compose down
|
|
|
|
Removing network hybrid_default
|
|
Network hybrid_default not found.
|
|
Removing network hybrid_net
|
|
Network hybrid_net not found.
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker stop" requires at least 1 argument.
|
|
See 'docker stop --help'.
|
|
|
|
Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Stop one or more running containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
"docker container rm" requires at least 1 argument.
|
|
See 'docker container rm --help'.
|
|
|
|
Usage: docker container rm [OPTIONS] CONTAINER [CONTAINER...]
|
|
|
|
Remove one or more containers
|
|
|
|
|
|
===> SPIN UP REGISTRY
|
|
|
|
SwarmLab.io
|
|
$ docker-compose up -d registry
|
|
|
|
Total reclaimed space: 0B
|
|
Creating network "hybrid_default" with the default driver
|
|
Creating network "hybrid_net" with the default driver
|
|
Creating hybrid_registry_1 ...
|
|
[1A[2K
|
|
Creating hybrid_registry_1 ... [32mdone[0m
|
|
[1B
|
|
|
|
===> BUILD IMAGE
|
|
|
|
SwarmLab.io
|
|
$ docker build -t "localhost:5000/sec" .
|
|
|
|
Sending build context to Docker daemon 126kB
|
|
|
|
Step 1/23 : FROM localhost:5000/sec
|
|
---> 6c56d7e2dccd
|
|
Step 2/23 : USER root
|
|
---> Running in e5e2306ce8e6
|
|
Removing intermediate container e5e2306ce8e6
|
|
---> f97b1d24d839
|
|
Step 3/23 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get --no-install-recommends install -y openssh-server net-tools curl tcpdump shorewall sudo vim nmap dnsutils iputils-ping iptables wget python
|
|
---> Running in 5c6d5d9db90f
|
|
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
|
|
Get:2 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
|
|
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
|
|
Get:4 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1372 kB]
|
|
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
|
|
Get:6 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
|
|
Get:7 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
|
|
Get:8 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
|
|
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [15.3 kB]
|
|
Get:10 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [237 kB]
|
|
Get:11 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1816 kB]
|
|
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
|
|
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2244 kB]
|
|
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2136 kB]
|
|
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [266 kB]
|
|
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [53.8 kB]
|
|
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
|
|
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
|
|
Fetched 21.5 MB in 10s (2052 kB/s)
|
|
Reading package lists...
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
iptables is already the newest version (1.6.1-2ubuntu2).
|
|
net-tools is already the newest version (1.60+git20161116.90da8a0-1ubuntu1).
|
|
nmap is already the newest version (7.60-1ubuntu5).
|
|
python is already the newest version (2.7.15~rc1-1).
|
|
shorewall is already the newest version (5.1.12.2-1).
|
|
curl is already the newest version (7.58.0-2ubuntu3.12).
|
|
dnsutils is already the newest version (1:9.11.3+dfsg-1ubuntu1.13).
|
|
iputils-ping is already the newest version (3:20161105-1ubuntu3).
|
|
openssh-server is already the newest version (1:7.6p1-4ubuntu0.3).
|
|
sudo is already the newest version (1.8.21p2-3ubuntu1.3).
|
|
tcpdump is already the newest version (4.9.3-0ubuntu0.18.04.1).
|
|
vim is already the newest version (2:8.0.1453-1ubuntu1.4).
|
|
wget is already the newest version (1.19.4-1ubuntu2.2).
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
Removing intermediate container 5c6d5d9db90f
|
|
---> 0ea30f5bb094
|
|
Step 4/23 : RUN apt-get autoremove --purge && apt clean
|
|
---> Running in bd86245996c5
|
|
Reading package lists...
|
|
Building dependency tree...
|
|
Reading state information...
|
|
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
|
|
[91m
|
|
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
|
|
|
|
[0mRemoving intermediate container bd86245996c5
|
|
---> 52ef42c33ba3
|
|
Step 5/23 : RUN rm -rf /var/lib/apt/lists/*
|
|
---> Running in 7f315c597b34
|
|
Removing intermediate container 7f315c597b34
|
|
---> 0562703be117
|
|
Step 6/23 : RUN mkdir -p /var/run/sshd
|
|
---> Running in 5f1950f28011
|
|
Removing intermediate container 5f1950f28011
|
|
---> 87e59a3b0bd7
|
|
Step 7/23 : RUN echo 'root:pass' | chpasswd
|
|
---> Running in 781d828b104e
|
|
Removing intermediate container 781d828b104e
|
|
---> fde9b1e7227a
|
|
Step 8/23 : RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
---> Running in 120f9496c880
|
|
Removing intermediate container 120f9496c880
|
|
---> 750d722c62f0
|
|
Step 9/23 : RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
---> Running in 242d9df24b4f
|
|
Removing intermediate container 242d9df24b4f
|
|
---> 979cd90fa1de
|
|
Step 10/23 : ENV NOTVISIBLE "in users profile"
|
|
---> Running in ab20dd6d5a57
|
|
Removing intermediate container ab20dd6d5a57
|
|
---> 7f34c00fb487
|
|
Step 11/23 : RUN echo "export VISIBLE=now" >> /etc/profile
---> Running in 1eda5c9992b3
Removing intermediate container 1eda5c9992b3
---> 05776bb81f8f
Step 12/23 : COPY sec_bootstrap /usr/bin
---> fecfd05b70c7
Step 13/23 : COPY get_hosts /usr/bin
---> 1c70c01e9bcc
Step 14/23 : COPY auto_update_hosts /usr/bin
---> ab80f9557f2b
Step 15/23 : RUN mkdir -p /etc/shorewall
---> Running in 9118f5747dc4
Removing intermediate container 9118f5747dc4
---> 2277d158daf6
Step 16/23 : COPY shorewall /etc/shorewall
---> 0d4203e3c6d4
Step 17/23 : RUN mkdir -p /etc/opt
---> Running in 6bc21156c2d4
Removing intermediate container 6bc21156c2d4
---> 41ce3f82f15c
Step 18/23 : RUN mkdir -p /project
---> Running in fd2662365d88
Removing intermediate container fd2662365d88
---> 3efc4096ba62
Step 19/23 : WORKDIR /project
---> Running in 4939845abac8
Removing intermediate container 4939845abac8
---> 5bfcc3f20cf7
Step 20/23 : COPY install-vim-plugin.sh .
---> 11797dd7dfb4
Step 21/23 : RUN grep -qw ^docker /etc/passwd || useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
---> Running in 89e28df79748
The user `docker' is already a member of `sudo'.
Removing intermediate container 89e28df79748
---> bfba520d3245
Step 22/23 : COPY .vimrc /home/docker
---> 919475d4f410
Step 23/23 : USER docker
---> Running in c4bbb7d740ba
Removing intermediate container c4bbb7d740ba
---> 75fa55d1270c
Successfully built 75fa55d1270c
Successfully tagged localhost:5000/sec:latest
===> PUSH IMAGE TO REGISTRY
SwarmLab.io
$ docker push "localhost:5000/sec"
The push refers to repository [localhost:5000/sec]
8348d1e5621e: Preparing
bbde3353b9a4: Preparing
c89fe98dae08: Preparing
804c488f13b8: Preparing
e821fdd8d18a: Preparing
b6eca8c38467: Preparing
168370c44da7: Preparing
c5d2c98c1379: Preparing
ca02ee5ce124: Preparing
63d3fabbe5e1: Preparing
cfb8e7f47f3a: Preparing
c34559f63849: Preparing
a77ba317baf2: Preparing
2f445bd84496: Preparing
bc76decf0396: Preparing
60795f1194fa: Preparing
48787a9c3e0a: Preparing
72e8ecdae678: Preparing
e2e0a5340342: Preparing
1ffec6563b4e: Preparing
9b917d32aab0: Preparing
84096c74f389: Preparing
7e47f3de7ed7: Preparing
27d1cd8e52b4: Preparing
6b572dc1dda5: Preparing
2bfccd2f6e7c: Preparing
5f9958c5d9d2: Preparing
5cc97da8be98: Preparing
75da3c36bbf2: Preparing
1e8ae8b72456: Preparing
0f2c92cc70b9: Preparing
2d1aca500279: Preparing
8e891881dc68: Preparing
8d3ed8c29f55: Preparing
afc877124afa: Preparing
e2355cd40c7e: Preparing
f797fbcceb89: Preparing
978bc2671301: Preparing
dbfcada07c9e: Preparing
3b022193e08c: Preparing
da2172c7dcdf: Preparing
416273c154c8: Preparing
e00075450cf0: Preparing
898d7a5ce475: Preparing
509a680473c2: Preparing
62934002eeae: Preparing
0859067c22cf: Preparing
8be95d03f678: Preparing
e3e2b8c2c104: Preparing
02030aba5cfe: Preparing
275e825c61b6: Preparing
201d9455d7d5: Preparing
6f5dbcb7201f: Preparing
6e0093acb7af: Preparing
9ca26d36670b: Preparing
dff25be0e74b: Preparing
93b85615c46b: Preparing
a1e64f090bb8: Preparing
f9c1bc2efa35: Preparing
4dab8d408a39: Preparing
eef156306856: Preparing
8c3f6a28124c: Preparing
7b77f090fa11: Preparing
65489e1e592b: Preparing
680659bb2184: Preparing
0e8252ea4a41: Preparing
59cc5e238945: Preparing
56f684957ad4: Preparing
944d9422ddba: Preparing
a95f1c561385: Preparing
cb1d5f75a0a3: Preparing
337517890bf7: Preparing
29afcc45a7cd: Preparing
21505fae7438: Preparing
00bcf7ab859f: Preparing
4cbb36f9b1a3: Preparing
75c8fbe3aac2: Preparing
6396c3525cd9: Preparing
e1a2875ae1b0: Preparing
d948ffa88c8f: Preparing
ed00b2c2f10b: Preparing
912a259f4f51: Preparing
a3912fb6f175: Preparing
5be14db589fd: Preparing
dfdf70f332e3: Preparing
0b2fe8f2cfad: Preparing
2e036d3abb44: Preparing
8f3c4fe9abf6: Preparing
59c764dd0b72: Preparing
5ee30e01e4b7: Preparing
a1850b6363e3: Preparing
609d47eb5922: Preparing
b87171b618eb: Preparing
3ee6c857059e: Preparing
0bbc5a99bf7e: Preparing
b99ef97f18d3: Preparing
0540154698bb: Preparing
acd66fc0870d: Preparing
ee811145a141: Preparing
2872fafb128e: Preparing
fe6d8881187d: Preparing
23135df75b44: Preparing
680659bb2184: Waiting
0e8252ea4a41: Waiting
59cc5e238945: Waiting
56f684957ad4: Waiting
944d9422ddba: Waiting
a95f1c561385: Waiting
cb1d5f75a0a3: Waiting
337517890bf7: Waiting
29afcc45a7cd: Waiting
21505fae7438: Waiting
00bcf7ab859f: Waiting
4cbb36f9b1a3: Waiting
75c8fbe3aac2: Waiting
6396c3525cd9: Waiting
e1a2875ae1b0: Waiting
d948ffa88c8f: Waiting
ed00b2c2f10b: Waiting
48787a9c3e0a: Waiting
72e8ecdae678: Waiting
e2e0a5340342: Waiting
1ffec6563b4e: Waiting
9b917d32aab0: Waiting
84096c74f389: Waiting
7e47f3de7ed7: Waiting
27d1cd8e52b4: Waiting
6b572dc1dda5: Waiting
2bfccd2f6e7c: Waiting
5f9958c5d9d2: Waiting
5cc97da8be98: Waiting
75da3c36bbf2: Waiting
1e8ae8b72456: Waiting
0f2c92cc70b9: Waiting
2d1aca500279: Waiting
8e891881dc68: Waiting
8d3ed8c29f55: Waiting
afc877124afa: Waiting
e2355cd40c7e: Waiting
f797fbcceb89: Waiting
978bc2671301: Waiting
dbfcada07c9e: Waiting
3b022193e08c: Waiting
da2172c7dcdf: Waiting
416273c154c8: Waiting
e00075450cf0: Waiting
898d7a5ce475: Waiting
509a680473c2: Waiting
62934002eeae: Waiting
0859067c22cf: Waiting
8be95d03f678: Waiting
e3e2b8c2c104: Waiting
02030aba5cfe: Waiting
275e825c61b6: Waiting
201d9455d7d5: Waiting
6f5dbcb7201f: Waiting
6e0093acb7af: Waiting
9ca26d36670b: Waiting
dff25be0e74b: Waiting
93b85615c46b: Waiting
a1e64f090bb8: Waiting
f9c1bc2efa35: Waiting
4dab8d408a39: Waiting
eef156306856: Waiting
8c3f6a28124c: Waiting
7b77f090fa11: Waiting
65489e1e592b: Waiting
a3912fb6f175: Waiting
5be14db589fd: Waiting
dfdf70f332e3: Waiting
0b2fe8f2cfad: Waiting
2e036d3abb44: Waiting
8f3c4fe9abf6: Waiting
59c764dd0b72: Waiting
5ee30e01e4b7: Waiting
a1850b6363e3: Waiting
609d47eb5922: Waiting
b87171b618eb: Waiting
3ee6c857059e: Waiting
0bbc5a99bf7e: Waiting
b99ef97f18d3: Waiting
0540154698bb: Waiting
acd66fc0870d: Waiting
ee811145a141: Waiting
2872fafb128e: Waiting
fe6d8881187d: Waiting
cfb8e7f47f3a: Waiting
c34559f63849: Waiting
a77ba317baf2: Waiting
2f445bd84496: Waiting
bc76decf0396: Waiting
60795f1194fa: Waiting
b43408d5f11b: Preparing
23135df75b44: Waiting
b43408d5f11b: Waiting
912a259f4f51: Waiting
b6eca8c38467: Waiting
168370c44da7: Waiting
c5d2c98c1379: Waiting
ca02ee5ce124: Waiting
63d3fabbe5e1: Waiting
bbde3353b9a4: Pushed
804c488f13b8: Pushed
c89fe98dae08: Pushed
e821fdd8d18a: Pushed
8348d1e5621e: Pushed
b6eca8c38467: Pushed
c5d2c98c1379: Pushed
168370c44da7: Pushed
ca02ee5ce124: Pushed
63d3fabbe5e1: Pushed
cfb8e7f47f3a: Pushed
c34559f63849: Pushed
a77ba317baf2: Pushed
bc76decf0396: Pushed
60795f1194fa: Pushed
72e8ecdae678: Pushed
48787a9c3e0a: Pushed
e2e0a5340342: Pushed
84096c74f389: Pushed
1ffec6563b4e: Pushed
9b917d32aab0: Pushed
7e47f3de7ed7: Pushed
27d1cd8e52b4: Pushed
6b572dc1dda5: Pushed
2bfccd2f6e7c: Pushed
1e8ae8b72456: Pushed
0f2c92cc70b9: Pushed
5f9958c5d9d2: Pushed
2d1aca500279: Pushed
8e891881dc68: Pushed
75da3c36bbf2: Pushed
8d3ed8c29f55: Pushed
afc877124afa: Pushed
e2355cd40c7e: Pushed
f797fbcceb89: Pushed
978bc2671301: Pushed
dbfcada07c9e: Pushed
3b022193e08c: Pushed
da2172c7dcdf: Pushed
e00075450cf0: Pushed
898d7a5ce475: Pushed
509a680473c2: Pushed
62934002eeae: Pushed
0859067c22cf: Pushed
8be95d03f678: Pushed
e3e2b8c2c104: Pushed
02030aba5cfe: Pushed
275e825c61b6: Pushed
201d9455d7d5: Pushed
6f5dbcb7201f: Pushed
6e0093acb7af: Pushed
9ca26d36670b: Pushed
93b85615c46b: Pushed
a1e64f090bb8: Pushed
f9c1bc2efa35: Pushed
4dab8d408a39: Pushed
eef156306856: Pushed
8c3f6a28124c: Pushed
7b77f090fa11: Pushed
65489e1e592b: Pushed
680659bb2184: Pushed
0e8252ea4a41: Pushed
59cc5e238945: Pushed
56f684957ad4: Pushed
944d9422ddba: Pushed
2f445bd84496: Pushed
cb1d5f75a0a3: Pushed
337517890bf7: Pushed
29afcc45a7cd: Pushed
416273c154c8: Pushed
21505fae7438: Pushed
00bcf7ab859f: Pushed
4cbb36f9b1a3: Pushed
75c8fbe3aac2: Pushed
6396c3525cd9: Pushed
e1a2875ae1b0: Pushed
d948ffa88c8f: Pushed
ed00b2c2f10b: Pushed
912a259f4f51: Pushed
a3912fb6f175: Pushed
dfdf70f332e3: Pushed
5cc97da8be98: Pushed
dff25be0e74b: Pushed
0b2fe8f2cfad: Pushed
2e036d3abb44: Pushed
59c764dd0b72: Pushed
8f3c4fe9abf6: Pushed
5ee30e01e4b7: Pushed
a1850b6363e3: Pushed
609d47eb5922: Pushed
b87171b618eb: Pushed
3ee6c857059e: Pushed
0bbc5a99bf7e: Pushed
b99ef97f18d3: Pushed
0540154698bb: Pushed
ee811145a141: Pushed
acd66fc0870d: Pushed
fe6d8881187d: Pushed
23135df75b44: Pushed
a95f1c561385: Pushed
5be14db589fd: Pushed
b43408d5f11b: Pushed
2872fafb128e: Pushed
latest: digest: sha256:99a207e633481574f57143ce7258a96afd7d5a3303835a1140e4684abcfe5aab size: 21701
===> SPIN UP MASTER NODE
SwarmLab.io
$ docker-compose up -d master
Creating hybrid_master_1 ...
[1A[2K
Creating hybrid_master_1 ... [32mdone[0m
[1B
===> SPIN UP WORKER NODES
SwarmLab.io
$ docker-compose up -d worker
Creating hybrid_worker_1 ...
[1A[2K
Creating hybrid_worker_1 ... [32mdone[0m
[1B
SwarmLab.io
$ docker-compose scale worker=2
The scale command is deprecated. Use the up command with the --scale flag instead.
Starting hybrid_worker_1 ...
[1A[2K
Starting hybrid_worker_1 ... [32mdone[0m
[1BCreating hybrid_worker_2 ...
[1A[2K
Creating hybrid_worker_2 ... [32mdone[0m
[1B
===> SWARMLAB READY
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
MPICH Swarmlab.io
==============================================================
To run SEC programs in an interative shell:
1. Login to master node:
Using Docker through command wrapper:
$ swarmlab-sec login
Or using SSH with keys through exposed port:
$ ssh -o "StrictHostKeyChecking no" -i ssh/id_rsa -p 2222 sec@localhost
where [localhost] could be changed to the host IP of master node
2. Execute programs inside master node, for example:
$ sudo su
# apt update
*----------------------------------------------------*
| Default hostfile of connected nodes in the swarmlab |
| is automatically updated at /etc/opt/hosts |
| To obtain hostfile manually: $ get_hosts > hosts |
* ---------------------------------------------------*
|
|
|