A few helpful functions for fish
mostly for myself, but can be helpful for others aswell
cleanDockerImages
Does what it says
dockerRemoveDangling
Does what it says
dockerUpdateAll
This runs through all your images and grabs the "latest" tagged version of them
dockerPsClean
This is used to get rid of any stale/exited images and clean the list, so that you can use the same name again
dockerStop
dockerStart
dockerRestart
These commands use either docker-compose, docker.sh (custom file you create to do various things, e.g build databases) and do their counterparts e.g. dockerStart will run build the image and stick it into daemon mode
dockerExec $0
e.g.
dockerExec app
This will launch sh or any program you specify on that container, e.g. docker app starter will run "starter" on app container, either docker-compose or standard docker
updateSys
This runs all the update commands for a mac (well all the ones I use,
- brew update/upgrade
- brew cask upgrade
- mas outdated
- zplug update
This also works on Arch it does the following
- zplug update
- yay (or puca) -Syu