Skip to content

Instantly share code, notes, and snippets.

@ichux
Created September 7, 2025 09:13
Show Gist options
  • Select an option

  • Save ichux/82f635a1cd3ac11d865657eddbf51527 to your computer and use it in GitHub Desktop.

Select an option

Save ichux/82f635a1cd3ac11d865657eddbf51527 to your computer and use it in GitHub Desktop.
#!/bin/bash
TARGET=/usr/local/bin/docker-compose
# Step 1: Create the file
sudo touch "$TARGET"
# Step 2: Make it executable
sudo chmod +x "$TARGET"
# Step 3: Write the wrapper script
sudo bash -c "cat > $TARGET" << 'EOF'
#!/bin/bash
docker compose "$@"
EOF
echo "✅ 'docker-compose' command has been set up to use 'docker compose'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment