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.
- Host: GitHub
- URL: https://github.com/leighmcculloch/dockerhost
- Owner: leighmcculloch
- License: mit
- Archived: true
- Created: 2021-09-12T02:39:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T01:27:59.000Z (over 3 years ago)
- Last Synced: 2024-10-04T13:43:59.664Z (9 months ago)
- Language: Shell
- Size: 27.3 KB
- Stars: 16
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: dockerhostExample:
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)
```