This is the historical Docker Machine remote-development procedure. If local performance, platform or licensing constraints prevent running the full system, a separately configured remote development host is an option; this page does not establish that Docker Machine works with a current provider account or SDK. The checked-in deployment path is described in deployment configuration, with source capacity in scaling. To find out more, visit the Docker Machine project's repository:
https://github.com/docker/machine
Follow the instructions there on how to set up Docker Machine and connect to a hosting provider. The commands below are retained for maintaining an existing Docker Machine setup. Confirm the intended remote development target before using them; they provision or modify remote resources. Then:
- Create a remote docker machine
- For AWS, this would look like
docker-machine create --driver amazonec2 --amazonec2-open-port 5000 --amazonec2-region us-east-2 remote-polis - This creates a machine called
remote-polis.
- For AWS, this would look like
- Connect your shell to the docker machine:
eval "$(docker-machine env remote-polis)" - Build and launch the polis server on the remote docker machine:
cd polis; docker compose up. Select the intended profiles and environment using the Makefile; the root service isserver(Compose:52).
You should see something like this
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
remote-polis * amazonec2 Running tcp://A.BB.CCC.DDD:EEEE v19.03.12
Next:
- Find the IP address of the docker machine (A.BB.CCC.DDD above)
- Visit the host port configured by the selected overlay/proxy. The API defaults to internal port 5000, while the root proxy maps
HTTP_PORT/HTTPS_PORTwith fallbacks 80/443 (API config:10, Compose:256). The historical direct-API example is http://A.BB.CCC.DDD:5000. - Useful commands for a remote docker machine:
docker-machine lsto see a list of available “machines”.docker-machine start <name>docker-machine stop <name>docker-machine ssh <name>to open an SSH session to the specified instance.docker-machine rm <name>permanently remove instance.
- Remember to stop (
docker-machine stop <name>) and delete (docker-machine rm <name>) remote instance to avoid unwanted charges.
Configuration values and local/host/container endpoint differences are documented in configuration and its per-site reference. These instructions do not describe the deployed cloud state.