From 30c45d4d8d29355e54bb4a6f015937c4f0ee4429 Mon Sep 17 00:00:00 2001 From: julien Date: Fri, 12 Sep 2025 10:21:56 +0200 Subject: [PATCH] added how to install docker --- README.md | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b3392e..54c5339 100644 --- a/README.md +++ b/README.md @@ -85,4 +85,45 @@ Faites un petit tour sur [SlackBuilds.org](https://slackbuilds.org/) vous y trou Pour les installer facilement nous utiliserons `sbotools` (déjà installé si vous avez utilisé le script `post-install.sh`), une collection de scripts Perl pour utiliser [SlackBuilds.org](https://slackbuilds.org/) à la manière d'un système de ports BSD. -À terminer... +Avant toute chose synchroniser les Slackbuilds : +``` +# sbocheck +``` + +Puis pour compiler et installer un paquet avec ses dépendances si nécessaire : +``` +# sboinstall +``` + +Pour plus d'informations `$ man sbotools` ! + +### Docker + +Installer Docker depuis SlackBuilds.org : +``` +# sboinstall docker-cli +``` + +Lancer le service : +``` +# chmod +x /etc/rc.d/rc.docker +# /etc/rc.d/rc.docker start +``` + +Tester avec `# docker run hello-world`. + +Activer le service au démarrage en éditant le fichier `/etc/rc.d/rc.local` : +``` +# Docker +if [ -x /etc/rc.d/rc.docker ]; then + /etc/rc.d/rc.docker start +fi +``` + +Et le stopper à l'arrêt de la machine en éditant `/etc/rc.d/rc.local_shutdown` : +``` +# Docker +if [ -x /etc/rc.d/rc.docker ]; then + /etc/rc.d/rc.docker stop +fi +```