Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sha1n/vagrant-docker-box
VM based Docker daemon setup based on Vagrant and VirtualBox
https://github.com/sha1n/vagrant-docker-box
docker docker-vm vagrant vagrant-box vagrantfile virtual-machine virtualbox
Last synced: 2 days ago
JSON representation
VM based Docker daemon setup based on Vagrant and VirtualBox
- Host: GitHub
- URL: https://github.com/sha1n/vagrant-docker-box
- Owner: sha1n
- Created: 2014-07-22T20:52:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T17:10:10.000Z (about 3 years ago)
- Last Synced: 2023-04-08T06:56:01.075Z (almost 2 years ago)
- Topics: docker, docker-vm, vagrant, vagrant-box, vagrantfile, virtual-machine, virtualbox
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vagrant-docker-box
This repo provides a basic setup for running a docker daemon on a hosted VM using vagrant + virtualbox.**:warning: Doesn't work out of the box on macOS Big Sur with VBox v6.1.28. Symptoms are similar to the ones reported in this _rejected_ [bug report](https://www.virtualbox.org/ticket/20626)), so some adjustments are required obviously :warning:**
## How To Setup on macOS
Tested on an intel-based macbook pro running `macOS Big Sur 11.6` and `VirtualBox 6.1.26 r145957 (Qt5.6.3)`
```
# install required tools
brew install vagrant
brew install --cask virtualbox
brew install docker# start the vm
vagrant up# export the daemon address (you may want to add it to your shell profile)
export DOCKER_HOST=tcp://192.168.50.2:2375
```## Customizing the VM
Create a file named `.vm_config.json` in the `Vagrantfile` directory and edit to your preferences.```json
{
"cpus": 8,
"memory": 10240,
"disksize": "82GB",
"ip": "192.168.10.101",
"docker_port": 2375
}
```