Hey guys, I domesticated Docker! A silly little script that wraps docker compose commands, mostly useful because of docker-rollover
.
docker-sit <optional-container-name>
:docker compose pause
docker-up <optional-container-name>
:docker compose up -d
docker-down <optional-container-name>
:docker compose down
docker-rollover
:docker-compose down && - docker-compose build --no-cache && docker-compose up -d
docker-good-boy
&&docker-gb
:docker ps && echo \"woof\"
-
Git clone this project and navigate to the project folder.
-
Run
chmod +x docker_good_boy.sh
. -
If you get the
~/.zshrc not found!
error, make one usingtouch ~/.zshrc
. -
Then, run
./docker_good_boy.sh
to add the aliases to your~/.zshrc
. -
Reload you
/.zshrc
withsource ~/.zshrc
.
All you should need to do is repeat the above steps, but if you run into issues try:
- Clearing the aliases and functions manually with
nano ~/.zshrc
then repeat the above steps.