Welcome to the Slackware Documentation Project

Differences

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

Link to this comparison view

Next revision
Previous revision
howtos:cloud:docker [2018/03/09 10:49 (UTC)]
bifferos created
howtos:cloud:docker [2018/03/12 21:07 (UTC)] (current)
bifferos Incorporate suggestions
Line 1: Line 1:
 ====== Docker on Slackware ====== ====== Docker on Slackware ======
  
-There'​s a Slackware package for Docker on Slackbuilds,​ but there is a small caveat when installing.+There'​s a Slackware package for Docker on Slackbuilds,​ but there is a small caveat when installing.  In case you are wondering, the docker build gives you the CE version of Docker.
  
 ===== Steps to install ===== ===== Steps to install =====
  
-As root:+As root, first install skpkg:
  
 <​code>​ <​code>​
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:
 +
 +<​code>​
 +# Start docker
 +if [ -x /​etc/​rc.d/​rc.docker ]; then
 +  /​etc/​rc.d/​rc.docker start
 +fi
 +</​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>​
 +# chmod 755 /​etc/​rc.d/​rc.docker
 +# /​etc/​rc.d/​rc.docker start
 +</​code>​
 +
 +Check /​var/​log/​docker.log for any issues.
  
  

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