By Lex1182
Hello,
I’m new to all this and looking for some general advice on what’s the best way of transfering my existing DigitalOcean image (droplet) into a docker image.
Thankfully, i’m still at the beginning of my project and I haven’t done the code yet, only the configuration/security of the Ubuntu OS along with SSL certificates are done.
My main concerns are:
I can’t seem to find any tutorials for the above two questions. Any help would be greatly appreciated.
Thank you.
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!
Hello friend!
Happy to help as best I can. Docker might not be the right solution for you, given the question. Docker is at it’s best when you separate out each part and create a dockerfile for each container that allows you to spin up new instances of that environment at any time. For example, in a web stack I might have a separate container for each item:
You would definitely need to build with Docker in mind rather than build outside and then move into Docker, as it would involve re-tracing a lot of your steps.
For your #2 question there, I assume by reloading the LE cert you mean renewing. Let me know if that is an incorrect assumption. Otherwise, this part of the tutorial will help with that: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04#step-5-—-verifying-certbot-auto-renewal
Kind Regards, Jarland
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.