Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:cloud:docker [2018/03/09 11:16 (UTC)]
bifferos [Docker on Slackware]
howtos:cloud:docker [2018/03/12 21:07 (UTC)] (current)
bifferos Incorporate suggestions
Line 20: Line 20:
 </​code>​ </​code>​
  
-**IMPORTANT!!!** +<​note>​ 
- +Log out (from root) and log back in again before you continue to install the rest of the docker packages.  As an alternative it may be enough to simply 
-Log out (from root) and log back in again before you continue to install the rest of the docker packages:+run: 
 +<​code>​ 
 +# source /​etc/​profile.d/​go.sh 
 +</​code>​ 
 +</​note>​
  
 <​code>​ <​code>​
Line 33: Line 37:
 # slpkg -s sbo docker-compose # slpkg -s sbo docker-compose
 </​code>​ </​code>​
 +
 +===== Running Docker =====
  
 Next ensure docker starts on boot.  Edit /​etc/​rc.d/​rc.local,​ add this: Next ensure docker starts on boot.  Edit /​etc/​rc.d/​rc.local,​ add this:
Line 42: Line 48:
 fi fi
 </​code>​ </​code>​
 +
 +Also, in /​etc/​rc.d/​rc.local_shutdown add this to ensure a clean shutdown:
 +
 +<​code>​
 +# Stop docker
 +if [ -x /​etc/​rc.d/​rc.docker ]; then
 +  /​etc/​rc.d/​rc.docker stop
 +fi
 +</​code>​
 +
 +Now you can start docker:
  
 <​code>​ <​code>​

In Other Languages
QR Code
QR Code howtos:cloud:docker (generated for current page)