The purpose of this script is to automatically and simply install and configure Docker with a single command. It allows the user running this script to no longer need to use sudo
with Docker.
- Install Docker and its dependencies.
- Add the user to the Docker group to avoid using
sudo
with Docker. - Run a test container to verify the installation.
- Restart the Docker service to apply the changes.
- Download the script to your machine.
- Open a terminal and navigate to the directory where the script is located.
- Make the script executable with the command:
sudo chmod u+x DockerEase.sh
- Run the script with the command:
./DockerEase.sh
When you run the script, you should see messages similar to the following:
- After running the script, it is necessary to restart the machine for the group changes to take effect.
- Make sure you have sudo privileges to run this script.
For uninstalling Docker and reverting changes made by this script, please refer to the uninstall readme
Le principe de ce script est d'installer et de configurer Docker de manière automatique et simplifiée grâce à une seule commande. Il permet à l'utilisateur qui exécute ce script de ne plus avoir besoin d'utiliser sudo
avec Docker.
- Installer Docker et ses dépendances.
- Ajouter l'utilisateur au groupe Docker pour éviter l'utilisation de
sudo
avec Docker. - Exécuter un conteneur de test pour vérifier l'installation.
- Redémarrer le service Docker pour appliquer les modifications.
- Téléchargez le script sur votre machine.
- Ouvrez un terminal et accédez au répertoire où se trouve le script.
- Rendez le script exécutable avec la commande :
sudo chmod u+x DockerEase.sh
- Exécutez le script avec la commande :
./DockerEase.sh
Lorsque vous exécutez le script, vous devriez voir des messages similaires aux suivants :
- Après l'exécution du script, il est nécessaire de redémarrer la machine pour que les modifications de groupe prennent effet.
- Assurez-vous d'avoir les privilèges sudo pour exécuter ce script.
Pour désinstaller Docker et annuler les modifications apportées par ce script, veuillez vous référer au readme de désinstallation
Copyright (C) 2023-2024 StarKev
Licensed under the licenceCC BY-NC-SA 4.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://creativecommons.org/licenses/by-nc-sa/4.0/©
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.