Skip to content

This is a basic script to either install docker, create a user called Docker, or add any user to the Docker group. Meant to be ran from the VM-Setup Script. Repo: https://github.com/Narehood/VM-Setup

License

Notifications You must be signed in to change notification settings

Narehood/Docker-Prep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐳 Docker-Prep

License Last Commit Bash

Stars Forks Issues

Automated Docker Environment Configuration for Linux

Detects your OS, installs the official Docker Engine, creates dedicated users with correct permissions,
and optionally deploys Portainer for immediate container management.

FeaturesQuick StartCapabilitiesNotes


🐧 Supported Distributions

Ubuntu Debian Alpine Arch Fedora RHEL SUSE

⚡ Quick Start

git clone https://github.com/Narehood/Docker-Prep
cd Docker-Prep
bash install.sh

🚀 Features

Feature Description
Auto-Detection Identifies your distro and installs the correct Docker Engine package
User Management Creates a dedicated Docker user or configures existing users for rootless access
Permission Fix Automatically handles group assignments (usermod -aG docker)
Portainer Ready Option to instantly deploy Portainer via the script
Secure Defaults Ensures proper service enabling and user permission handling

📋 Capabilities

The script guides you through a simplified menu to perform the following:

Action Description
Install Docker Engine Updates repositories, installs dependencies, and sets up the Docker daemon
User Configuration Creates a new user specifically for Docker or adds your current user
Security Groups Adds the selected user to the docker group for non-root command execution
Portainer Deployment Pulls and runs the Portainer CE container on port 9443

⚠️ Important Notes

Note Details
Root Access Script must be run as root or with sudo privileges
Re-Login Required Log out and back in after adding a user to the Docker group
Portainer If installed, accessible at https://<your-ip>:9443

Licensed under the MIT License.
You are free to use and modify this script as you wish.

About

This is a basic script to either install docker, create a user called Docker, or add any user to the Docker group. Meant to be ran from the VM-Setup Script. Repo: https://github.com/Narehood/VM-Setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages