docker - how do you disable auto-restart on a container?
https://stackoverflow.com/questions/37599128/docker-how-do-you-disable-auto-restart-on-a-container
90down voteaccepted
You can use the --restart=unless-stopped
option, as @Shibashis mentioned, or update the restart policy (this requires docker 1.11 or newer);
See the documentation for docker update
docker update --restart=no my-container
that updates the restart-policy for an existing container (my-container
)
docker - how do you disable auto-restart on a container?
相關推薦
docker - how do you disable auto-restart on a container?
command and -o down upd rest bsp ref spa https://stackoverflow.com/questions/37599128/docker-how-do-you-disable-auto-restart-on-a-contain
Ask HN: How do you deal being social on your job?
I work as a support engineer for a big company. Part of my job profile is to work on cases on call with customers, which tends to sometimes be with >30
Ask HN: How do you make sure js from a CDN or a CMS hasn't changed?
SRI won't protect you from:* Someone injecting malicious JS code into your checkout page* Non-static JS includes like Google AnalyticsBut it works well for
How do you turn off auto-capitalisation in HTML form fields in iOS?
Since iOS 5, type="email" has auto-capitalization disabled automatically, so you simply need: <input type="email"> For other input types, there are
Ask HN: How do you deal with complain rate on SES
Hi all,I run a news letter with AWS SES and the complaint rate is reaching 0.05%. They expect 0.1% complaint rate.I have received zero complaints email fro
Ask HN: How do you stay fresh on the basics of computer science?
I had an uncomfortable experience last week where I realized I'd forgotten the basics of condition variables (in particular, how to prevent the thundering
Ask HN: How do you keep open source project deliveries on time?
I can only think of two possible things:1. Sandbag like crazy, so allow enough margin to account for the normal variance in delivery time.2. Change the roa
Ask HN: How do you get exp on tech without getting any opportunity?
I've learned some basics of tech my own from books or using some other video streaming platform. With current employer, It's strictly no no for using any n
How do you stop Ansible from creating .retry files in the home directory?
files Go director cfg home reat fault int true There are two options that you can add to the [defaults] section of the ansible.cfg file t
Redis in python, how do you close the connection?
exec share case exe art done time ise mali down voteaccepted Just use redis.Redis. It uses a connection pool under the hood
UVA 10943 How do you add 組合數學之隔板法 OR DP
Larry is very bad at math — he usually uses a calculator, which worked well throughout college. Unforunately, he is now struck in a deserted island wi
UVa 10943 How do you add?
題目傳送門 題意:求將數字n分為k個數之和的種類數。高中排列組合的題目,隔板法! 題解:為啥要寫這個題解,因為WA了很多次。可以把一個數字n,看成是n個球,然後用k個隔板把他分開就行。 所以C[n+1][k-1],然後就WA了 #include <iostrea
How do you create a dictionary in Java?
用習慣python的 dictionary, 到其他程式語言也會想要用一下。 You’ll want a Map<String, String>. Classes that implement the Map interface include (but are not limited to)
Ask HN: How do you spend time during compilation?
I feel it's a significant problem when compilation lasts for more than 10s>. To not get bored, I am jumping into random articles during that time, loos
How do you pay for Travel money/Foreign Currency
It would be great to hear how you gain Travel Money/ Foreign Currency and Whether you feel there is need for a better way to cross borders and pay for stuf
Ask HN: How do you measure your funnel?
We are working on a tool to help people measure their conversion funnels. For example:Unique visitors to website -> User Signups -> Paid CustomersTh
Ask HN: How do you handle user money that you have to return
I am thinking about building a system where customers would put money into their account and they can use there balance to purchase things. Whats the best
Ask HN: How do you become the best at something?
I realized that while I'm fairly competent at some things, I'm not really top percentile in anything save my ability to communicate. It's really weighing o
Ask HN: How do you market yourself at your mid
Hello folks,I have a weird situation and if you don't mind, I would like to ask for your advice.I'm having hard time getting hired, both onsite and remotel
Ask HN: How do you organize your stuff?
So, I'm having an issue right now that is accruing rapidly. I have a lot of documents, images, pdfs, videos, code snippets, files, etc, etc that I have tri