boot2docker - How do I use docker from local to a remote machine? -
i've noticed boot2docker runs docker on vm deamon on port 2375. utilize local mac os x 'docker' command , executes calls on vm.
these commands use:
boot2docker start export docker_host=tcp://:2375 and 'docker images' (for example) running on vm.
how can same physical machine rather vm?
boot2docker meant dev purpose. spawn vm. bare metal, install docker on host , start docker daemon docker -d -h tcp://0.0.0.0:4243. warning: dangerous. have root access host. in order secure this, should alter 0.0.0.0 127.0.0.1 , either utilize ssh tunnel or nginx/apache frontend authentification.
on mac, export docker_host=tcp://<host ip>:4243
docker boot2docker
No comments:
Post a Comment