[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

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 revisionPrevious revision
Next revision
Previous revision
howtos:cloud:docker [2018/03/09 11:15 (UTC)] bifferoshowtos:cloud:docker [2018/03/12 21:07 (UTC)] (current) – Incorporate suggestions bifferos
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 =====
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>
 howtos:cloud:docker ()