Docker machine gives you a simple and easy way to test dockerized apps in any environment.
1) Download it as part https://www.docker.com/toolbox
2) Create a docker running machine...
docker-machine create --driver virtualbox dev1234
Now your local docker client can run docker commands directly against the running VM.
You can test it like so..
4) List the available machines, you should see an IP that is in a VM...
docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
dev virtualbox Running tcp://192.168.99.100:2376
5) Now, load up the env variables so your docker client can use the VM as a docker service.
➜ ~ x
➜ ~ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
No comments:
Post a Comment