Skip to content

gpalli/docker-machine-driver-pwd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-machine-pwd-driver

Docker machine PWD driver

Getting started

This driver tricks machine and allows to create / remove play-with-docker 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 section and place the binary that corresponds to your platform it somewhere in your PATH

Hard way

Use go get github.com/franela/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 <pwd_url> node1
eval $(docker-machine 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

About

Docker machine PWD driver

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%