DEV Community

Discussion on: unburden your machine by moving local Docker containers into the cloud

Collapse
tiim profile image
Tim Bachmann

Thanks for that article, really interesting. I have just one question: If I use docker compose with custom Images (build: tag) will this still work? If yes, will the Image be built on the local machiene and then somehow uploaded to the server or do I also have to have the sourcecode on the server as well?

Collapse
emrox profile image
Stefan Bauckmeier Author

I haven't tried this so far, but I made a quick test. The image is build remotely. If you have f.e. a COPY command in your Dockerfile, Docker will copy these files from your local environment to the remote server. So you don't have to manually upload/sync it.