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

https://github.com/play-with-docker/docker-machine-driver-pwd

Docker machine PWD driver
https://github.com/play-with-docker/docker-machine-driver-pwd

docker driver machine

Last synced: 5 months ago
JSON representation

Docker machine PWD driver

Awesome Lists containing this project

README

          

# docker-machine-pwd-driver

Docker machine PWD driver

## Getting started

This driver tricks machine and allows to create / remove [play-with-docker](http://play-with-docker.com) instances remotely.

Before using it please make sure of the following:

- Create a session in PWD and set PWD_URL env variable or use --pwd-url flag when creating an instance

## Installing

### Easy way

Download the release bundle from the [releases](https://github.com/play-with-docker/docker-machine-driver-pwd/releases) section and place the binary that corresponds to your platform it somewhere in your PATH

### Hard way

Use `go get github.com/play-with-docker/docker-machine-driver-pwd` and make sure that
`docker-machine-driver-pwd` is located somwhere in your PATH

## Usage

Creating an instance:

```
# Create a session in play-with-docker.com and set the PWD_URL env variable
docker-machine create -d pwd --pwd-url node1
eval $(docker-machine env node1)
docker ps
```

Alternatively you can set the env variable `PWD_URL` to avoid passing it as a flag every time.

Remove an instance

```
docker-machine rm -f node1
```

## Development

For local development it's necessary to set `PWD_PORT`, `PWD_HOSTNAME` and `PWD_SSL_PORT`
accordingly to use with local PWD.

i.e:

```
export PWD_PORT=3000
export PWD_SSL_PORT=3001
```