Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-machine support for use of volumes #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patcon
Copy link

@patcon patcon commented Feb 1, 2021

I use docker-machine to run docker on a DigitalOcean instance, since my local machine has a tough time with some projects with a few containers.

It mostly works fine, and is meant to be a drop-in replacement for local docker on projects. But one thing docker-machine can't handle is local mounts (unnamed). (internally, docker expands the relative path locally like ./foo to /Users/patcon/culturestake-provisioning/foo, and so docker on the remote machine creates and mounts that empty dir on the server. Something about dockers architecture makes this not easily fixable, even though docker-machine is an official tool)

Anyhow, if you felt ok merging this, it means people both with and without powerful workstations can contribute a bit easier. No pressure.

It adds a minimal Dockerfile for containers with those previous types of mounts, now with a COPY. docker-marchine sends the whole docker context to the server, so this works fine.

Further, might be able to use docker-gen as a mulitstage volume, where processed template is copied over, but wasn't clear enough on its operation to do it.

@patcon
Copy link
Author

patcon commented Feb 1, 2021

But also, going to try using docker-machine with vbox, and see if i get any memory errors. So I'm not yet out of options to get this running :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant