Skip to content

Instantly share code, notes, and snippets.

@unsafe9
Last active June 30, 2025 01:09
Show Gist options
  • Select an option

  • Save unsafe9/74ddd2b9e0c019b8fedd378d804f7e8b to your computer and use it in GitHub Desktop.

Select an option

Save unsafe9/74ddd2b9e0c019b8fedd378d804f7e8b to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo dnf update -y
# install docker
sudo dnf install -y docker
sudo systemctl enable --now docker.service
sudo usermod -aG docker $USER
# install docker-compose
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.37.3/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
# setup ecr access
sudo dnf install -y amazon-ecr-credential-helper
cat <<EOF > $DOCKER_CONFIG/config.json
{
"credsStore": ""
}
EOF
chown $USER:$USER $DOCKER_CONFIG/config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment