hop of those help? UPDATE: You configuration seems ok to me, but I think that ports 49160-49162 should be bind to IPv4 interface not IPv6. I googled this and it seems that you encountered an open bug in docker:
How do you determine if a docker container is running on remote docker-machine or locally running in docker engine?
I hope this helps you . The docker CLI is the client half of a client/server architecture (dockerd or in past versions docker daemon is the other half). When you use docker-machine, it is updating environment variables including $DOCKER_HOST which tells docker to connect to another host. The default is to connect to the socket on the local host. The value of $DOCKER_HOST overrides that, and the CLI flag docker -H ... overrides both of those. The most common reason to have a container spin up on an unexpected host is when you forget to set/unset $DOCKER_HOST.
does docker remote api support creating a container using a docker-compose file?
it helps some times No; Docker Compose itself is an application that uses the API. You’d need to directly run docker-compose up or something similar as a shell command if you wanted to directly use it. (You might be able to hack into its internals if you have a Python program, but not from Java.)
How may I gett an SSH tunnel from local docker to remote DB working, using kingsquare and docker-compose