▲ | jdsleppy 3 days ago | |||||||||||||||||||||||||
I've been very happy doing this: DOCKER_HOST=“ssh://user@remotehost” docker-compose up -d It works with plain docker, too. Another user is getting at the same idea when they mention docker contexts, which is just a different way to set the variable. Did you know about this approach? In the snippet above, the image will be built on the remote machine and then run. The context (files) are sent over the wire as needed. Subsequent runs will use the remote machine's docker cache. It's slightly different than your approach of building locally, but much simpler. | ||||||||||||||||||||||||||
▲ | kosolam 3 days ago | parent | next [-] | |||||||||||||||||||||||||
This approach is akin to the prod server pulling an image from a registry. The op method is push based. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | 3 days ago | parent | prev [-] | |||||||||||||||||||||||||
[deleted] |