Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker run restart on boot

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

docker auto start when reboot

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

PREVIOUS NEXT
Code Example
Shell :: Docker - Container is not running 
Shell :: * daemon not running; starting now at tcp:5037 
Shell :: how to start gnome desktop on fedora terminal 
Shell :: git revert merge commit 
Shell :: gulp-gzip 
Shell :: edit text file bash 
Shell :: Loop through an array of strings in Bash 
Shell :: Starting ssh-agent on Windows 10 fails: "unable to start ssh-agent service, error :1058" 
Shell :: how to merge branches github 
Shell :: How to change default install location for pip 
Shell :: git force add ignored file 
Shell :: git installing in linux 
Shell :: batch file if statement 
Shell :: replace tab sed 
Shell :: git push branch to remote 
Shell :: ansible run multiple shell commands 
Shell :: git remote add 
Shell :: delete command from history 
Shell :: Download Kubectl - latest release 
Shell :: How to Install & Run CodeIgniter Framework 
Shell :: bash command in variable 
Shell :: why gitignore does not work 
Shell :: how to put a youtube video in github description 
Shell :: pacman purge 
Shell :: top linux 
Shell :: powershell search array 
Shell :: unzip recursively linux 
Shell :: Sending a Simple Email From Linux Terminal 
Shell :: waiting for your editor to close the file 
Shell :: docker loki 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =