By Nicholas Orr
Currently the only way that I know that works is to stop the container, then delete the container and create a new one…
This seems completely bonkers…
Surely there is a “proper” way to do the following:
It is not obvious to me, seems like you need to know what you’re doing 100% up front before you even think about issuing a docker run or create command, if you forget an option you need to start again… Surely there is a modify options for container command or something?
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!
If you’re familiar with python, you may want to look in to DockerMap.
It’s designed to ease quite a bit of the more repetitive actions and allows for updating container options. It does require the use of a DockerFile, though it helps there too. May be worth checking out and tinkering with if you’d like to simplify things a bit!
rightio - so turns out I’m doing it properly…
Hey, you tried editing /var/lib/docker/<container_id>config.v2.json and restarting the container? It’s a hacky way but for some changes does the trick
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.