2024-02-18 02:32:08 +03:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
alias bud='buildah bud --isolation chroot --network host --format docker -f '
|
|
|
|
|
2024-02-23 21:46:04 +03:00
|
|
|
alias pod-run='podman run -e "TERM=${TERM:-linux}" --rm -it '
|
|
|
|
alias pod-run-sh="pod-run --network host --entrypoint='[\"/bin/sh\"]' --user=0:0 "
|
2024-02-18 02:32:08 +03:00
|
|
|
alias pod-ps='podman ps '
|
|
|
|
alias pod-images='podman images --format "table {{.ID}} {{.Repository}}:{{.Tag}} {{.Size}} {{.Created}} |{{.CreatedAt}}" '
|
|
|
|
alias pod-inspect='podman inspect '
|
|
|
|
alias pod-logs='podman logs '
|
|
|
|
|
|
|
|
sko-inspect() {
|
2024-02-23 21:46:04 +03:00
|
|
|
local i
|
|
|
|
i="${1:?}" ; shift
|
|
|
|
command skopeo inspect "docker://$i" "$@"
|
2024-02-18 02:32:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
sko-list-tags() {
|
2024-02-23 21:46:04 +03:00
|
|
|
local i
|
|
|
|
i="${1:?}" ; shift
|
|
|
|
command skopeo list-tags "docker://$i" "$@"
|
2024-02-18 02:32:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
pod-dive() {
|
2024-02-23 21:46:04 +03:00
|
|
|
local i
|
|
|
|
i="${1:?}" ; shift
|
|
|
|
command dive "podman://$i" "$@"
|
2024-02-18 02:32:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
jq-visual() {
|
|
|
|
jq -C | less
|
|
|
|
}
|
|
|
|
|
|
|
|
jq-config() {
|
|
|
|
jq '.[].Config'
|
|
|
|
}
|
|
|
|
|
|
|
|
jq-tags() {
|
|
|
|
jq -r '.Tags[]'
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ ${UID} -ne 0 ] ; then
|
|
|
|
alias docker='sudo docker '
|
|
|
|
fi
|
|
|
|
alias dkr='docker '
|
|
|
|
alias dkr-run='dkr run -e "TERM=${TERM:-linux}" --network host --rm -it '
|
|
|
|
alias dkr-run-sh="dkr-run --entrypoint='' --user=0:0 "
|
|
|
|
alias dkr-ps='dkr ps '
|
|
|
|
alias dkr-images='dkr images --format "table {{.ID}}\\t{{.Repository}}:{{.Tag}}\\t{{.Size}}\\t{{.CreatedAt}}" '
|
|
|
|
alias dkr-inspect='dkr inspect '
|
|
|
|
alias dkr-logs='dkr logs '
|