/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Raft-Labs/server-setup/main/setup.sh)"
The setup script will install Docker on your system. It includes the following steps:
- Add Docker's official GPG key.
- Add the Docker repository to Apt sources.
- Install Docker Engine and related components.
- Perform post-installation steps to manage Docker as a non-root user.
The setup script also includes an optional step to create a swap file. By default, it will create an 8GB swap file, but you can specify a different size as an argument.
To run the setup script and create a swap file of 4GB, use the following command:
curl -fsSL https://raw.githubusercontent.com/Raft-Labs/server-setup/main/setup.sh -o setup.sh
chmod +x setup.sh
./setup.sh 4096 y
In this example, 4096
is the swap size in MB, and y
indicates that the swap file should be set up.