I’m finishing up work on an app for doing coding challenges. It creates a docker container, runs / unit tests the code and immediately destroys the container. The app works great on my local machine (with docker installed) but I’m having trouble figuring out how this is done in production. It’s my understanding that my app will be inside a Docker container, in which case I won’t be able to create other containers within that container. I hope this makes sense.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Running Docker on a VPS isn’t all that different than running Docker locally. You’d install Docker to the VPS, much like how you installed it locally and then execute your commands as you would to perform the tasks you need to perform.
Personally, I prefer Ubuntu or Debian myself, and the installation guides for it as as follows:
https://docs.docker.com/engine/installation/linux/ubuntu/
https://docs.docker.com/engine/installation/linux/debian/
As for running Docker within Docker, it’s doable, but slightly more to manage – but doable :-).
https://blog.docker.com/2013/09/docker-can-now-run-within-docker/
… and a little more recent reading about why DIND isn’t actually needed:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.