Comments (6)
Isn't this dependent on the host?
from docker-owncloud.
I think you can just do --restart='always'
if your docker service is started at startup, that however is indeed host dependent and also usually given.
from docker-owncloud.
I've never actually tried this, but this page makes it seem more complicated than that.
from docker-owncloud.
As of Docker 1.2, restart policies are the built-in Docker mechanism for restarting containers when they exit. If set, restart policies will be used when the Docker daemon starts up, as typically happens after a system boot. Restart policies will ensure that linked containers are started in the correct order.
If restart policies don't suit your needs (i.e., you have non-Docker processes that depend on Docker containers), you can use a process manager like upstart, systemd or supervisor instead.
how about https://docs.docker.com/reference/commandline/cli/#restart-policies
from docker-owncloud.
systemd starts the docker service on boot on all my machines. I'll test the --restart='always'
switch to see if that brings the container up at boot.
from docker-owncloud.
Nice!
Added to the documentation: https://github.com/l3iggs/docker-owncloud/wiki/Ensure-your-ownCloud-server-is-always-running
from docker-owncloud.
Related Issues (20)
- While updating to 9.0.4 from 9.0.2.2: [Exception] Unable to move /usr/share/webapps/owncloud/apps to /usr/share/webapps/owncloud/_apps HOT 5
- Change ports HOT 1
- Can not connect to server through HTTP in port 80 but can connect through HTTP in port 443 HOT 1
- Could not write to Data directory HOT 5
- Remove /nextcloud HOT 1
- Own SSL certificates (option A) doesn't seem to work? HOT 1
- SQL won't load on latest image? HOT 3
- Lets Encrypt fails (SSL method 3) HOT 2
- Permissions with docker in windows HOT 3
- Harden Security method A doesn't work HOT 1
- HOSTNAME is not properly resolved in setup-apache-ssl-key HOT 3
- Unable to get Lets Encrypt certificate from 9.1.2-1 HOT 5
- Use Redis cache for file locking HOT 3
- PHP 7.1.1 HOT 6
- Integration MySQL Database
- Let's Encrypt fails to authorize
- Still maintained?
- Maintained?
- not working HOT 1
- Connection refused after reboot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-owncloud.