Docker Setup Script for Ubuntu
A simple shell script to automate the installation and basic configuration of Docker on a fresh Ubuntu system using the docker.io package. What This Script Does
This script streamlines the process of setting up a Docker environment by performing the following actions:
Updates the apt package list to ensure the latest versions are available.
Installs the docker.io package, which is the version of Docker maintained in the official Ubuntu repositories.
Adds the current user to the docker group. This is a crucial post-installation step that allows you to run Docker commands without needing sudo.
Enables and starts the Docker service, ensuring it launches automatically on system boot.
Requirements
An Ubuntu-based system (e.g., Ubuntu 20.04, 22.04, etc.).
Access to a user account with sudo privileges to install packages and modify system groups.
Usage ⚙️
Follow these steps to run the script:
Clone the repository:
git clone https://github.com/toomanysecrets/ConfigDockerUbuntu.git
cd ConfigDockerUbuntu
Make the script executable:
chmod +x install_docker.sh
Run the script with sudo:
sudo ./install_docker.sh
Log Out and Log Back In:
For the group membership changes to take effect, you must log out and log back in to your user session. After doing so, you can verify the installation by running docker ps.
License 📄
This project is licensed under the BSD 3-Clause "New" or "Revised" License. You can view the full license text in the LICENSE file.
Disclaimer
Always review the contents of any script before executing it with sudo privileges on your system. This script is provided as-is and is intended for personal and educational use.