{"id":18425334,"url":"https://github.com/toshke/vagrant-ubuntu-docker","last_synced_at":"2025-10-05T02:02:56.363Z","repository":{"id":67600237,"uuid":"461466583","full_name":"toshke/vagrant-ubuntu-docker","owner":"toshke","description":"Vagrant VM IoC for Ubuntu with Docker daemon","archived":false,"fork":false,"pushed_at":"2022-02-21T08:40:27.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-22T21:22:23.505Z","etag":null,"topics":["docker","macos","performance","vagrant","virtualbox"],"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/toshke.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":"2022-02-20T11:28:43.000Z","updated_at":"2022-04-22T10:37:14.000Z","dependencies_parsed_at":"2023-02-22T09:46:23.107Z","dependency_job_id":null,"html_url":"https://github.com/toshke/vagrant-ubuntu-docker","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/toshke%2Fvagrant-ubuntu-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fvagrant-ubuntu-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fvagrant-ubuntu-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fvagrant-ubuntu-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toshke","download_url":"https://codeload.github.com/toshke/vagrant-ubuntu-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247687946,"owners_count":20979571,"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","macos","performance","vagrant","virtualbox"],"created_at":"2024-11-06T05:03:35.906Z","updated_at":"2025-10-05T02:02:56.278Z","avatar_url":"https://github.com/toshke.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker in Vagrant Ubuntu VM\n\n### Prereqs:\n\n- `virtualbox`\n- `virtualbox-extension-pack` \n- `vagrant` \n- `vagrant-vbguest` \n\n### Features\n\n\n#### Folder share\n\nBy default, docker mounts will work within `$HOME/workspace` folder,\nbut feel free to adjust this to your needs. \n\nUse `vagrant reload` to apply new configuration - beware this will\nreboot your VM with all the containers running on it\n\n#### Port forwaring\n\nIf you mount any ports on docker host to container, you can reach them\nfrom actual VM host by editiling [Vagrant](https://github.com/toshke/vagrant-ubuntu-docker/blob/main/Vagrantfile#L14) file ports array. \n\nUse `vagrant reload` to apply new configuration - beware this will\nreboot your VM with all the containers running on it\n\n### Run\n\n- Clone the repo \n\n```\ngit clone https://github.com/toshke/vagrant-ubuntu-docker.git \u0026\u0026 cd vagrant-ubuntu-docker\n```\n\n- To create and run the VM\n\n```\nmake provision\n```\n\n- To connect to Docker from the host\n\n```\neval $(make env) \u0026\u0026 docker info\n```\n\n\n## Why?\n\nDocker desktop application for MacOS seems to be taking\n2 full cores on my mac, all of the time. It's not `hyperkit` \nissues it's actual `Docker` app that is having 100% cpu \nusage\n\n## Alternatives\n\nRunning docker via `minikube` as suggested by this [post](https://dhwaneetbhatt.com/blog/run-docker-without-docker-desktop-on-macos) yielded veeery poor \ndisk perfromance for myself. E.g. running `du -h -d1` within \naverage `node_modules` folders took \u003e 10 secs. On `VMBox/Ubuntu` mounted\noption, this works with sub-second performance. \n\nWhile aforemntioned post suggests against 3 layer drive mapping,\nthis works just fine for myself, and in competition of \n3 (Docker 4 desktop, Minikube, Vagrant provisioned VM) works the best. \n\n## Potential issues\n\nVBox may complain if `192.168.56.2` ip is already reserved\nby another network iface on your computer. Just edit [Vagrantfile#4](https://github.com/toshke/vagrant-ubuntu-docker/blob/main/Vagrantfile#L4) to apply available IP\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshke%2Fvagrant-ubuntu-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoshke%2Fvagrant-ubuntu-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshke%2Fvagrant-ubuntu-docker/lists"}