Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker run restart on boot

$ docker run -d --restart unless-stopped <image>
Comment

docker run restart always

$ docker run --restart=always redis
Comment

docker auto start when reboot

docker update --restart unless-stopped $(docker ps -q)
Comment

PREVIOUS NEXT
Code Example
Shell :: git change origin url 
Shell :: datetime calculation in shell 
Shell :: errno 2 no such file or directory less 
Shell :: asdf local 
Shell :: add hp printer linux 
Shell :: $? in shell script 
Shell :: push a local branch 
Shell :: change fc editor 
Shell :: create zip file ubuntu 
Shell :: pacman 404 
Shell :: save output of command to craible bash 
Shell :: docker compose v2 install 
Shell :: ssh tunel map 
Shell :: size apache 
Shell :: spotify linux 
Shell :: kill server on port mac 
Shell :: how to give permission to create files in directory linux 
Shell :: how to add existing project to gitlab 
Shell :: pocketsphinx 
Shell :: npm Error: EACCES: permission denied, scandir 
Shell :: download bangla font ubuntu 
Shell :: installing kubernetes with kops 
Shell :: git undo last commit 
Shell :: files reset from staging area 
Shell :: ubuntu get process on port 
Shell :: vs code installed extensions list command 
Shell :: react router dom with typescript 
Shell :: install kubectl 
Shell :: venv activate 
Shell :: center dock icons ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =