Commit Graph

21 Commits (df87b41635b5f01eeaa4b51ca6fbc4df5b5164c3)

Author SHA1 Message Date
John D Pell 5748aa20a7 alias/docker: `shellcheck` 2022-02-14 15:40:56 -08:00
John D Pell 7c2c2a5525 aliases: run `shfmt` on the whole folder
My apologies to future `git blame` hunters ♥
2022-02-14 15:40:56 -08:00
Matthew Adams 8ccfbd7e0f add current working directory as a volume 2020-02-12 17:26:00 -06:00
con-f-use 60b3572f7c
Purge `$subdirectory` leftover in docker aliases 2018-12-11 21:10:52 +01:00
con-f-use 7136604b57
Fix dependency of docker aliases on docker plugin
Some of the docker aliases use functions found in the docker plugin. If the plugin is not enabled, these aliases do not work. This commit only defines the aliases if the plugin is enabled.

Also changed: `dkelc` now creates an explicit login shell, has the synonym `dkbash` and uses no backticks. Reason: on some docker images the status as login-shell is not set automatically, which causes e.g. `/etc/bash.bashrc` and `/etc/profile` not to be loaded in these images.

Note: There should be a convenience function in `lib/helpers.bash` that checks if a plugin is available/enabled/disabled. The if-statement if rather clonky.
2018-12-10 15:03:10 +01:00
Matthew Adams 6fcb32f851 rm d, dkalp & dkubu 2018-11-24 08:44:46 -06:00
Matthew Adams 1f80b11476 more aliases 2018-11-20 09:29:15 -06:00
Matthew Adams 05529dbd6b more docker aliases 2018-11-20 07:59:16 -06:00
Jason Al-Mansor 74b1fb8185 Fixing quotes around new docker aliases which cause them to execute 2018-11-01 10:45:08 -04:00
Matthew Bates f41324251f Added more recently available docker cleanup commands 2018-10-31 08:07:57 +00:00
Ari Mourao 14b2dbde85 docker-compose up and docker exec -it aliases 2018-10-02 15:18:54 -03:00
Nils Winkler ca8ae9c767
Fixed case statement
I've combined the `darwin` (macOS) and BSD cases into one case.
2017-12-12 07:12:00 +01:00
sharils 803a57749d Add bsd support 2017-12-11 22:11:46 +08:00
sharils 3863a6b2ea
Make backward compatible 2017-12-08 21:10:11 +08:00
sharils 003fccc8e3
Make dkrmui work in Mac and BSD 2017-12-07 21:15:19 +08:00
Dylan Semler 20a49e6393 Add plugin and alias for cleaning docker assets 2017-02-15 07:00:42 -05:00
jitakirin b8011d1534 Fix dklcip alias
Due to use of double-quotes ``docker ps`` was executed when the aliases
were loaded and as a consequence ``dklcip`` would always show IP of a
container that was last then instead of at runtime.

This changes the alias to use single quotes which fixes that.

It also changes the alias to use docker's ``--format`` option so
there's no need of parsing the output using grep and cut.
2015-06-17 15:26:06 +01:00
jitakirin 76faf90f90 Fix dkrmui alias (delete untagged images)
The docker images subcommand was returning all columns due to unescaped
'$3' in awk filter.  This was throwing a lot of errors as rmi tried to
remove non-existent images.

In any case docker images has a flag to filter and only show dangling
image IDs which makes this simpler.
2015-05-26 10:25:56 +01:00
Kevin S. Clarke 74244236cd Fix startup error with docker alias 2015-05-12 22:23:55 -04:00
Kevin S. Clarke ef0f7ebc42 Updated undescores to dashes and added new alias 2015-01-27 15:20:21 -05:00
Kevin S. Clarke ed79936529 Added Docker aliases and functions 2015-01-22 10:23:00 -05:00