Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
My Slow Internet vs. Docker (medium.com/google-cloud-platform-develop...)
68 points by dhruvbhatia on Aug 1, 2015 | hide | past | favorite | 19 comments



So the TL;DR is run your day to day on a VM that has a good internet connection if you use docker. Ok.


Really just run your day to day on a VM regardless. It's 2015.


I run my day to day on a Macbook. I don't feel like wasting my limited resources for such minimal benefit.

If my gaming PC supported PCI passthrough I would though.


I'm on an X1 Carbon with 4GB of RAM, so I use Amazon spot instances instead.


When Docker was new I could download the Ubuntu baseimage with no issues. Now there's so many layers it takes far too long.


Which Ubuntu image are you using? The official Ubuntu 14.04 image has always been only 4 layers and is about 190MB total size.


Really cool post... though it seems like DigitalOcean, Linode or others might be a better idea if you use the instances more than a few hours a month.

I'm not connection constrained, but my workflow for linux is to mount a drive/directory to a linux instance (virtual or physical) edit with a gui editor locally, and run via an ssh connected cli. Which works pretty well for me.

Anyone familiar with something that can mount a virtual drive in windows or osx to a linux machine over ssh?


Don't know about windows, but you can use NFS on OS X and Linux.

If you mount your working directory exactly like on your host machine, you can even use relative paths in your Dockerfile.

E.g mount /Users/tracker1 from your host on /Users/tracker1 on the VM.

Since your Dockerfile working dir matches on both systems, you can use them as if you were working directly on the machine, like:

ADD ./entrypoint.sh /entrypoint.sh COPY ./app/code /code

etc.


I didn't know you could NFS over SSH... interesting... Just need a solution for my windows desktop.

https://gist.github.com/proudlygeek/5721498


You can do the same thing with a Digital Ocean droplet. Just make sure you add a swap file to increase the RAM to >=1 GB.


Right.. and doing so is just a matter of using --driver digitalocean instead of --driver google


https://medium.com/@chanezon/good-post-on-using-docker-cloud... great post, but don't use maven:onbuild for Java projects


I would prefer to use LXD for this stuff. I can work in a container that is pretty much a vm. Snapshot and publish that vm to LXC registry and pull it down to another machine with faster internets. And all I need to do install apt-get install lxd. No crazy plugins and long command line stuff.


Also, an alternative to `docker-machine scp` is docker-osx-dev (https://github.com/brikis98/docker-osx-dev). It will rsync a path into the docker-machine host.


Micro-studio? In London that's a studio. New York micros are London standards.



Disagree? Please point me to usage of the term micro-studio in London.


-3 but the comment isn't faded? How does that work? And while I'm here, what is the downing for? An observation on the different terms used in New York and London - too off topic? Seems a bit excitable.


I don't using Docker or any of these tools, but I get the feeling this could have been done easily using rsync instead.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: