{"id":16779929,"url":"https://github.com/haxorof/vagrant-wsl-docker","last_synced_at":"2025-08-11T15:10:16.138Z","repository":{"id":83479582,"uuid":"140166083","full_name":"haxorof/vagrant-wsl-docker","owner":"haxorof","description":"Docker on Windows using Vagrant and accessible via Ubuntu on Windows (WSL)","archived":false,"fork":false,"pushed_at":"2024-06-30T17:38:34.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-10T20:56:39.305Z","etag":null,"topics":["docker","vagrant","virtualbox","wsl","wsl-ubuntu"],"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/haxorof.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":"2018-07-08T12:33:11.000Z","updated_at":"2024-06-30T17:38:37.000Z","dependencies_parsed_at":"2025-02-18T02:45:31.469Z","dependency_job_id":null,"html_url":"https://github.com/haxorof/vagrant-wsl-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/haxorof/vagrant-wsl-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fvagrant-wsl-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fvagrant-wsl-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fvagrant-wsl-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fvagrant-wsl-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haxorof","download_url":"https://codeload.github.com/haxorof/vagrant-wsl-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxorof%2Fvagrant-wsl-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269908654,"owners_count":24494592,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","vagrant","virtualbox","wsl","wsl-ubuntu"],"created_at":"2024-10-13T07:33:05.058Z","updated_at":"2025-08-11T15:10:16.106Z","avatar_url":"https://github.com/haxorof.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vagrant-wsl-docker\n\nThis repository will guide you how to setup `docker` command to be used directly from `bash` using Windows Subsystem for Linux (WSL1).\n\n## Prerequisites\n\n* VirtualBox installed in Windows\n* Vagrant installed in Windows\n* Plugin `vbguest` installed in vagrant: `vagrant plugin install vagrant-vbguest` (automatically installed via the `.vagrantplugins` file)\n\n## How to set it up\n\nInstall `docker` client and docker-compose cli plugin by running bash script `install_standalone_docker_cli.sh`:\n\nNext is to append configuration to `~/.bashrc` for `docker` to use TCP instead of file:\n\n```console\necho 'export DOCKER_HOST=tcp://127.0.0.1:2375' \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n```\n\nNote! Since 18.09 it is also possible to access the Docker daemon via SSH:\n\n```console\necho 'export DOCKER_HOST=ssh://vagrant@192.168.56.56' \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n```\n\nNow when this is done the `docker`client is ready to go. It is now time to\nsetup the VM which hosts the Docker daemon.\n\nThis guide assume you have Vagrant installed in Windows and therefore it is\nnecessary for add an alias to `~/.bash_aliases` to make Linux use the Vagrant in Windows:\n\n```console\necho \"alias vagrant='vagrant.exe'\" \u003e\u003e ~/.bash_aliases\n```\n\nTime to create the VM which hosts the Docker daemon and you do this by just\nmaking sure your current working directory is in the root of this repository\nand run the following:\n\n**Important!** Ensure that IP range `192.168.56.1-192.168.56.255` is not used and handled by any DHCP in your network because\nthis is used for the `host-only` network adapter. If this IP range is in use please look into the `Advanced` section how\nto change the configuration.\n\n```console\nvagrant up\n```\n\nAfter this point the VM is ready and the Docker daemon is started. Test the `docker` client by running the following command:\n\n```console\ndocker info\n```\n\n## General usage tip\n\nAfter the you have setup everything and run the `vagrant up` once then from that point you can start and stop the box by\nexplicitly specifying the ID. This ID can be found using the command `vagrant global-status`. Using the ID will allow you\nto start, stop and reprovision the box from any location (you do not need to go to the directory of the Vagrantfile).\n\n## Advanced\n\nIf you would like to override any configuration defined in [default-config.yml](default-config.yml) then this is possible by adding a new\nfile called `user-config.yml` in this directory (will be ignored by git). The easiest way to start modifying the configuration is to look\nat [default-config.yml](default-config.yml) and just create the `user-config.yml` with only the variables you want to override.\n\n### Disable host-only adapter\n\nFor example if you want to disable the `host-only` network adapter and only use NAT, then the `user-config.yml` can look like this:\n\n```yaml\nvagrant_use_host_only: 0\n```\n\n### Proxy settings\n\nYou can so that the Vagrant box will use a proxy. Example below show you how to do this in your `user-config.yml`:\n\n```yaml\nvagrant_proxy_enabled: true\n```\n\nTo set proxy use the environment variables which `vagrant-proxyconf` looks at. Read official documentation: [vagrant-proxy](http://tmatilai.github.io/vagrant-proxyconf/)\n\n**IMPORTANT!** In Windows 10 `vagrant-proxyconf` plugin will work with version `1.5.2`, `2.0.1` or later.\n\n### Provision with different Ansible playbook\n\nIf you want some else than just a simple Docker CE installation then you can override `ansible_playbook` to point to a different playbook in a sub directory of\nthis repo, suggest creating directory `ansible-overrides` which is ignored by `.gitignore` and put your playbook there. You can also override the Ansible galaxy\nrequirements file by setting variable `ansible_requirements`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxorof%2Fvagrant-wsl-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxorof%2Fvagrant-wsl-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxorof%2Fvagrant-wsl-docker/lists"}