Created
September 7, 2025 09:13
-
-
Save ichux/82f635a1cd3ac11d865657eddbf51527 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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