Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fmenezes/docker-set
docker-set is a simple tool to switch between docker environments, virtual machines and docker for mac.
https://github.com/fmenezes/docker-set
cli docker docker-for-mac docker-machine go golang vagrant
Last synced: 15 days ago
JSON representation
docker-set is a simple tool to switch between docker environments, virtual machines and docker for mac.
- Host: GitHub
- URL: https://github.com/fmenezes/docker-set
- Owner: fmenezes
- License: mit
- Created: 2018-08-30T11:45:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T10:53:20.000Z (about 4 years ago)
- Last Synced: 2024-11-14T13:44:19.313Z (about 1 month ago)
- Topics: cli, docker, docker-for-mac, docker-machine, go, golang, vagrant
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# :warning: ABANDONED :warning:
With the advancements of Docker for Mac I see no reason to keep switching between Docker for Mac and Docker Toolbox is no longer needed.
# docker-set
docker-set is a simple tool to switch between docker environments, virtual machines and docker for mac.## Installation
```sh
$ go get -u github.com/fmenezes/docker-set
```## Usage
### 1. List all machines
```sh
$ docker-set listACTIVE NAME DRIVER STATE
* docker-for-mac docker-for-mac Unknown
default docker-machine Running
test vagrant running
```### 2. Sets the environment
```sh
eval $(docker-set env default)
```All further docker commands will run in the selected machine
### 3. Adds a vagrant box to the list
```sh
$ docker-set add test vagrant /path/to/VagrantfileDone
```### 4. Removes a vagrant box from the list
```sh
$ docker-set rm testDone
```### 5. Starts a vm from the list
```sh
$ docker-set start testDone
```### 6. Stops a vm from the list
```sh
$ docker-set stop testDone
```## Notes
- When adding or removing a vagrant machine a file named `$HOME/.docker-set` will be stored.