docker-compose


How to run docker-compose up -d at system start up?


To let the containers autostart at startup point, I tried to add the command cd directory_has_dockercomposeyml && docker-compose up -d in /etc/rc.local. but then after i reboot the machine, the containers not work.
How run docker-compose up -d at system start up?
Solved the problem.
crontab -e
#reboot (sleep 30s ; cd directory_has_dockercomposeyml ; /usr/local/bin/docker-compose up -d )&

Related Links

What does working_dir tag mean in a docker-compose yml file
If I upgrade an image in docker-compose, will its volumes be lost?
How to solve this docker-compose upgrading error?
Fabric Network - what happens when a downed peer connects back to the network?
Docker-compose and load balancing
Run arguments in Docker Compose
Docker compose file config
Systemd “No such file or directory” itself during “docker-compose up”
Docker compose yml static IP addressing
compose extend file results in a validation error
hubot rocketchat adapter does not work
Docker compose lables constraint:node not work
is it possible to generate a random mysql password with dockercompose
Networking Docker Compose
How to change the config file for Riak TS when using Docker
Django Docker-compose machine does not start web server

Categories

HOME
reactjs
http
kendo-ui-angular2
marie
pyspark
weblogic
display
window.open
readdir
crm
pandoc
ubuntu-14.04
facebook-sharer
swift3.1
aggregate
responsive
dat.gui
internet-explorer-7
legend-properties
restructuredtext
ajaxcontroltoolkit
fibonacci
beaker-notebook
sasl
azure-table-storage
pushpad
visual-studio-debugging
oracle-nosql
luhn
motherboard
anypoint-studio
linkurious
socketcluster
delphi-xe
contenteditable
paperclip
spring-webflow-2
visio-2010
dna-sequence
blackberry
acceleo
scanf
nls
qt3d
addressbook
computed-properties
mavlink
dbi
key-value-store
airwatch
laterjs
treelist
jmap
calc
video-embedding
trendline
jersey-test-framework
notice
lytro
properties-file
tokudb
eula
genero
jad
aiff
nsmutableurlrequest
visual-c#-express-2010
azure-caching
xps
image-preloader
power-management
fastcgi-mono-server
infor-eam
php-amqplib
stringstream
string-length
openafs
blackberry-eclipse-plugin
jquery-ui-map
django-admin-tools
advanceddatagrid
pinchzoom
utm
symfony-1.2
noise-reduction
simultaneous
numerical-computing
calendarextender

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App