{"id":15745708,"url":"https://github.com/dgroup/docker-on-windows","last_synced_at":"2025-03-31T06:13:53.014Z","repository":{"id":72815344,"uuid":"105233355","full_name":"dgroup/docker-on-windows","owner":"dgroup","description":"Set up docker, docker-compose inside vagrant VM on Windows OS","archived":false,"fork":false,"pushed_at":"2019-04-11T05:55:49.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T10:31:56.235Z","etag":null,"topics":["docker-windows","vagrant-docker-windows"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgroup.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-29T05:28:56.000Z","updated_at":"2019-08-15T13:20:26.000Z","dependencies_parsed_at":"2023-04-10T18:50:13.569Z","dependency_job_id":null,"html_url":"https://github.com/dgroup/docker-on-windows","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/dgroup%2Fdocker-on-windows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgroup%2Fdocker-on-windows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgroup%2Fdocker-on-windows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgroup%2Fdocker-on-windows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgroup","download_url":"https://codeload.github.com/dgroup/docker-on-windows/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423726,"owners_count":20774820,"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-windows","vagrant-docker-windows"],"created_at":"2024-10-04T04:21:36.120Z","updated_at":"2025-03-31T06:13:52.995Z","avatar_url":"https://github.com/dgroup.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Join the chat at https://gitter.im/dgroup/docker-on-windows](https://badges.gitter.im/dgroup/docker-on-windows.svg)](https://gitter.im/dgroup/docker-on-windows?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n\n#### Docker on Windows\n##### The pain\nUnfortunately, there are a lot of developers who have to work in WinOS. I also have one workstation with WinOS.\nThe docker doesn't work properly on Win7, thus, we have to use a workaround with Vagrant box.\n\n##### Installation\n1. Install `VirtualBox-5.1.14-112924` (or later)\n2. Install `vagrant_1.9.1.msi` (or later)\n3. Run `create_dev_vm.bat`\n\n##### Vagrant F.A.Q.\n1. Basic commands\n    ```shell\n    vagrant init \u003cbox_name\u003e                     # Create a new VM based on \u003cbox_name\u003e (new Vagrantfile will be created)\n    vagrant global-status                       # Display parameters for the all created VMs\n    \n    # All comannds below should be executed from the directory with Vagrantfile\n    vagrant up                                  # Start up the local VM\n    vagrant reload                              # Reboot VM\n    vagrant ssh                                 # Connect to the local VM \n    vagrant snapshot save \u003csnapshot_name\u003e       # Create a snapshot of VM \n    vagrant snapshot restore \u003csnapshot_name\u003e    # Restory the VM to the particular snapshot \n    vagrant snapshot delete \u003csnapshot_name\u003e     # Delete particular snapshot of VM\n    vagrant ssh-config                          # Show the ssh configuration (port, identity file, etc)\n    vagrant suspend                             # Suspend the current state of VM\n    vagrant destroy \u003cVM_id\u003e                     # Remove particular VM by id. You can detect the id by `vagrant global-status` command\n    ```\n2. How can I share the files across host `winOS` and guest Linux VM?\n\n    Check the `config.vm.synced_folder` parameter in `Vagrantfile`.\n    \n3. How can I call the web applications inside of Docker containers hosted in guest Linux VM?\n\n    Check the `config.vm.network \"forwarded_port\"` parameter in `Vagrantfile`.\n     \n##### Docker F.A.Q.\n1. Prepare environment\n    ```bash\n    docker start \u003ccontainer_name\u003e               # start particular container\n    docker start -i \u003ccontainer_name\u003e            # start particular container in interactive mode\n    docker stop \u003ccontainer_name\u003e                # stop particular container\n    docker ps                                   # display all running containers\n    docker ps -a                                # display all existing containers (stopped)\n    docker exec -it \u003ccontainer_name\u003e /bin/bash  # join to the container via bash\n    docker rm \u003ccontainer_name\u003e                  # remove particular container\n    docker rmi \u003cimage_name\u003e                     # remove particular image\n    docker pull \u003cimage_name\u003e                    # download particular image from the remote repository (NC Artifactory, dockerhub, etc)\n    ```\n2. Monitoring\n    ```bash\n    # Display on-line information regarding system usage (CPU,RAM,IO) per container    \n    docker stats $(docker ps --format '{{.Names}}')        \n    docker stats $(docker ps | awk '{if(NR\u003e1) print $NF}')\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgroup%2Fdocker-on-windows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgroup%2Fdocker-on-windows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgroup%2Fdocker-on-windows/lists"}