This tool provides an automated solution for setting up Docker environments across various systems using Ansible. It's designed to streamline the Docker installation process, ensuring both consistency and reliability.
- Ansible must be installed on your system.
- A fundamental understanding of shell scripting and Ansible is required.
First, clone this repository to your local machine.
Access the directory where the repository was cloned.
Create a set of SSH keys:
ssh-keygen -t rsa -f your_desired_key_name
Copy the contents of the <your_desired_key_name>.pub file.
On the server or machine where Docker will be installed, execute the following command to add the copied public key to the authorized keys:
echo "<.pub file content>" >> ~/.ssh/authorized_keys
Change server_ip, server_username, server_pass with your server ip, server username and server password
chmod +x ./run.sh
./run.sh your_server_ip server_username server_pass