An open API service indexing awesome lists of open source software.

https://github.com/leighmcculloch/dockerhost

A tool for simply creating a docker host vm on macOS.
https://github.com/leighmcculloch/dockerhost

Last synced: 5 months ago
JSON representation

A tool for simply creating a docker host vm on macOS.

Awesome Lists containing this project

README

        

# dockerhost

Setup a docker host on macOS in a lightweight Ubuntu vm and use docker on mac
without Docker Desktop.

Uses [multipass](https://multipass.run) to setup the vm, and sets up a Docker
daemon that listens on `tcp://:2375`.

## Usage

```
brew install --cask 4d63/dockerhost/dockerhost
```

```
$ dockerhost
Usage: dockerhost

Example:
dockerhost create -c 2 -d 10G -m 2G
dockerhost mount $HOME $HOME
eval $(dockerhost env)
docker build ...

Commands:
create Create and start a vm hosting the docker daemon.
-c Number of CPUs to allocate. Default: 2.
-d Disk space to allocate. Default: 10G.
-m Memory to allocate. Default: 2G.
start Start the vm.
stop Stop the vm.
delete Delete the vm.
info Display the IP, disk space, and other info about the vm.
ip Display the IP of the vm.
env Output the DOCKER_HOST environment variable.
exec Execute a command in the vm.
mount Mount a folder into the vm.
The folder on the host.
The folder on the dockerhost. (Optional)
umount Unmount a folder that was mounted into the vm.
The folder on the dockerhost. (Optional)
```