Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdub/localdocker
a Vagrant-based Docker host, for local development
https://github.com/mdub/localdocker
Last synced: about 2 months ago
JSON representation
a Vagrant-based Docker host, for local development
- Host: GitHub
- URL: https://github.com/mdub/localdocker
- Owner: mdub
- Created: 2014-05-04T08:14:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-02T05:59:19.000Z (over 10 years ago)
- Last Synced: 2023-04-13T04:02:22.736Z (over 1 year ago)
- Language: Shell
- Size: 164 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# localdocker
This is a Vagrant-based Docker host, for local development.
## Prerequisites
You will need Vagrant. And VirtualBox.
You'll also need the "vagrant-persistent-storage" plugin. This is used to create a persistent `/var/lib/docker` volume that survives VM rebuilds. You can install it with
$ vagrant plugin install vagrant-persistent-storage
## Usage
Type `vagrant up` to bring the VM up.
The VM gets IP address 192.168.66.2. Any mapped ports should be visible on that address (rather than localhost). You might also wish to set up an entry in `/etc/hosts`:
192.168.66.2 localdocker
To communicate with the Docker daemon from your host machine, set:
$ export DOCKER_HOST=tcp://192.168.66.2:4243
Your home directory will be shared with the VM, so mapping volumes should mostly work, as long as they're within $HOME.