This repository contains a script to install Docker, Docker Compose, and optionally various monitoring tools on Ubuntu 22.04. This script automates the installation and configuration process, making it easier to set up a Docker environment with essential monitoring tools.
- Installs Docker and Docker Compose
- Adds the current user to the Docker group
- Optionally installs monitoring tools:
ctop
- A top-like interface for container metricsGlances
- A system monitoring toolNetdata
- Real-time system monitoring
- Enables Docker and Netdata (if installed) to start on boot
You can install the script using one of the following methods:
Download and execute the script using curl
:
curl -fsSL https://raw.githubusercontent.com/raman0c17/docker-setup/main/install-docker.sh -o install-docker.sh
chmod +x install-docker.sh
./install-docker.sh
Alternatively, use wget
to download and run the script:
wget https://raw.githubusercontent.com/raman0c17/docker-setup/main/install-docker.sh -O install-docker.sh
chmod +x install-docker.sh
./install-docker.sh
Clone the repository and run the script:
git clone https://github.com/raman0c17/docker-setup.git
cd docker-setup
chmod +x install-docker.sh
./install-docker.sh
During the installation, the script will prompt you to choose whether to install each of the following monitoring tools:
ctop
- A top-like interface for container metricsGlances
- A system monitoring toolNetdata
- Real-time system monitoring
Simply respond with y
(yes) or n
(no) when prompted to install each tool.
After the script completes, it is recommended to reboot your system to apply all changes:
sudo reboot
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or have questions, please open an issue in this repository.
Author: Raman
Repository: docker-setup