Skip to content
Permalink
Browse files
Update README.md
  • Loading branch information
aa3025 committed Aug 25, 2022
1 parent 161bfd5 commit a40feb95185bf788d37b4b006447365eec05d1d7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -11,7 +11,7 @@ When you run the "0_create_cluster.cmd" it does the following:
1) Creates new Docker network subnet "clusternet", where all the containers will be connected to. You can chose the IP mask and subnet in variables section of the script.
2) Two Docker images are created from Dockerfiles (first the admin then the client) which may take few minutes. If you keep these images afterwards (i.e. not delete them on purpose or edit the Dockerfiles), next time you run this script it will going re-use them again, so the cluster set up will be much faster.
3) It then starts the "admin" container first, which has only user "root" and allows paswordless ssh into each of the client containers or use "pdsh" (parallel shell) to execute commands via ssh on all the client containers simultaneously (or only on the ones your specify).
4) Then it starts as many single-user "client" containers as many there are lines in the file "userlist.txt", which should contain 2 columns: "username" and "password" separated by the TAB. For each line of the "userlist.txt" a client container is created, with the same [hostname=containername=username] and password from the 2nd column of the list of users.
4) Then it starts as many single-user "client" containers as many there are lines in the file "userlist.txt", which should contain 2 columns: "username" and "password" separated by the [space]. For each line of the "userlist.txt" a client container is created, with the same [hostname=containername=username] and password from the 2nd column of the list of users.
5) Additionally all the users home folders from all client containers are created in local folder "clusterhomes", which is created and mounted as /home to each container on the startup.
7) Each client container runs its own TurboVNC server as a user, hooked up to the port 590X of the host, where X is the line number in "userlist.txt".
8) E.g. to VNC into 5th container, you should connect to localhost:5 with vncviewer using password from line 5 of the "userlist.txt".

0 comments on commit a40feb9

Please sign in to comment.