{"id":22747937,"url":"https://github.com/githubfoam/kali-dockerswarm-sandbox","last_synced_at":"2025-03-30T05:42:19.405Z","repository":{"id":49556538,"uuid":"242408985","full_name":"githubfoam/kali-dockerswarm-sandbox","owner":"githubfoam","description":"microserving kali linux docker registry multi master docker swarm","archived":false,"fork":false,"pushed_at":"2020-02-22T21:53:51.000Z","size":20,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T07:49:36.587Z","etag":null,"topics":["docker","docker-swarm","kali-linux"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/githubfoam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-22T20:43:35.000Z","updated_at":"2020-06-25T16:33:53.000Z","dependencies_parsed_at":"2022-08-21T00:40:47.679Z","dependency_job_id":null,"html_url":"https://github.com/githubfoam/kali-dockerswarm-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fkali-dockerswarm-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fkali-dockerswarm-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fkali-dockerswarm-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/githubfoam%2Fkali-dockerswarm-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/githubfoam","download_url":"https://codeload.github.com/githubfoam/kali-dockerswarm-sandbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246281217,"owners_count":20752207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-swarm","kali-linux"],"created_at":"2024-12-11T03:18:45.879Z","updated_at":"2025-03-30T05:42:19.389Z","avatar_url":"https://github.com/githubfoam.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kali-dockerswarm-sandbox\n\nmaster switches\n~~~\nkali-docker-swarm-sandbox-centos\\Vagrantfile\n\nauto = ENV['AUTO_START_SWARM'] || true # create swarm auto mode\nmulti_manager =  true # create swarm multi manager mode\n~~~\nmulti-master mode\n~~~\n\u003evagrant up\n\u003evagrant ssh manager\n\n    [vagrant@manager ~]$ hostnamectl\n       Static hostname: manager\n             Icon name: computer-vm\n               Chassis: vm\n            Machine ID: 2eb2b7d854e94f58b4899411ef23ffe5\n               Boot ID: ba205d3c06134ae3821153d373fed9e6\n        Virtualization: kvm\n      Operating System: CentOS Linux 7 (Core)\n           CPE OS Name: cpe:/o:centos:centos:7\n                Kernel: Linux 3.10.0-1062.9.1.el7.x86_64\n          Architecture: x86-64\n\n      [vagrant@manager ~]$ cat /etc/redhat-release\n      CentOS Linux release 7.7.1908 (Core)\n      [vagrant@manager ~]$ whoami\n      vagrant\n      [vagrant@manager ~]$ id vagrant\n      uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant),993(docker)\n\nvagrant@manager:~$ docker node ls\nID                            HOSTNAME            STATUS              AVAILABILITY        MANAGER STATUS      ENGINE VERSION\nkscv757m5li5u3vkdy6ogj93h *   manager             Ready               Active              Leader              19.03.2\nupkfbsb1cbbddfc7bbznqyze1     manager1            Ready               Active              Reachable           19.03.2\nuxalnnzeegjzz6ep7549vyigc     worker1             Ready               Active                                  19.03.2\napxj1nh24lxxeqjul2nij5edh     worker2             Ready               Active                                  19.03.2\n\n~~~\n\nlocal docker registry\n~~~\ndocker run -d   -p 5000:5000   --name registry   -v /opt/registry/data:/var/lib/registry   --restart always   registry:2\n\ndocker build . -t kali:cmd --file /vagrant/kalilinux/Dockerfile\ndocker tag kali:cmd localhost/kali:cmd\ndocker tag localhost/kali:cmd localhost:5000/kali:cmd\n\ndocker push localhost:5000/kali:cmd\n\ndocker image rm localhost:5000/kali:cmd\ndocker image rm localhost/kali:cmd\n\ndocker pull localhost:5000/kali:cmd\n\n~~~\n~~~\n\n[vagrant@manager ~]$ docker service create --name registry --publish published=5000,target=5000 registry:2\n0vjes7ujrk4ix2eux0m96ru3u\noverall progress: 1 out of 1 tasks                                                                                                                                                           1/1: running   [==================================================\u003e]                                                                                                                         verify: Service converged                                                                                                                                                                    \n\n[vagrant@manager ~]$ docker service ls\nID                  NAME                MODE                REPLICAS            IMAGE               PORTS\n0vjes7ujrk4i        registry            replicated          1/1                 registry:2          *:5000-\u003e5000/tcp\n\n[vagrant@manager ~]$ curl http://localhost:5000/v2/\n{}\n\n  [vagrant@manager ~]$ docker-compose -f /vagrant/kalilinux/docker-compose.yml up -d\n  WARNING: The Docker Engine you're using is running in swarm mode.\n\n  Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.\n\n  To deploy your application across the swarm, use `docker stack deploy`.\n\n  Creating kalilinux_kali-service_1 ... done\n\n  [vagrant@manager ~]$ docker-compose -f /vagrant/kalilinux/docker-compose.yml ps\n            Name              Command    State    Ports\n  -----------------------------------------------------\n  kalilinux_kali-service_1   /bin/bash   Exit 0\n\n  [vagrant@manager ~]$ docker stack deploy  --compose-file /vagrant/kalilinux/docker-compose.yml kalilinux_kali-service_1\n  Creating network kalilinux_kali-service_1_default\n  Creating service kalilinux_kali-service_1_kali-service\n\n  [vagrant@manager ~]$ docker stack services kalilinux_kali-service_1\n  ID                  NAME                                    MODE                REPLICAS            IMAGE                     PORTS\n  ak8qn6c95cut        kalilinux_kali-service_1_kali-service   replicated          0/1                 localhost:5000/kali:cmd\n\n  [vagrant@manager ~]$ docker stack ls\n  NAME                       SERVICES            ORCHESTRATOR\n  kalilinux_kali-service_1   1                   Swarm\n\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fkali-dockerswarm-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithubfoam%2Fkali-dockerswarm-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithubfoam%2Fkali-dockerswarm-sandbox/lists"}