jclouds-docker is a local cloud provider modelled on docker. Similar to other jclouds supported providers, it supports the same portable abstractions offered by jclouds.
##Setup
Please follow these steps to configure your workstation for jclouds-docker:
install the latest Docker release (please visit https://docs.docker.com/installation/) If you are using boot2docker, notice that from version v1.3.0 the Docker daemon is set to use an encrypted TCP socket (--tls, or --tlsverify), then you need to create a p12 certificate using the following command:
`openssl pkcs12 -export -out $HOME/.jclouds/docker.p12 -inkey $HOME/.boot2docker/certs/boot2docker-vm/key.pem -in $HOME/.boot2docker/certs/boot2docker-vm/cert.pem -certfile $HOME/.boot2docker/certs/boot2docker-vm/ca.pem`
#How it works
--------------- ------------- | Image(s) | | Node(s) | --------------- ------------- --------- docker remote api ---------------------------------------- | jclouds | ---------------------------> | DOCKER_HOST | --------- ----------------------------------------
##Components
#Notes:
#Troubleshooting As jclouds docker support is quite new, issues may occasionally arise. Please follow these steps to get things going again:
Remove all containers
$ docker ps -aq | xargs docker rm -f
remove all the images
$ docker images -q | xargs docker rmi -f