docker aliases

# docker aliases
alias dockertls='export DOCKER_TLS="--tlsverify --tlskey=$HOME/docker/.certs/key.pem --tlscacert=$HOME/docker/.certs/ca.pem --tlscert=$HOME/docker/.certs/cert.pem"'
alias dockertls1='export DOCKER_TLS_VERIFY=1; export DOCKER_CERT_PATH=$HOME/docker/.certs'
alias dockerenv='docker inspect -f "{{json .Config.Env}}"'
alias dockerlogpath='docker inspect --format="{{.LogPath}}"'
alias dockermount='docker inspect -f "{{json .Mounts}}"'
alias dockerlogsf='docker logs -f'
alias dockerrmidangling='docker rmi $(docker images -f dangling=true -q)'
alias dockerrmvolumes='docker volume rm $(docker volume ls -qf dangling=true)'
alias dockerrun='docker run --rm -ti'
alias dockerpsf='docker ps -a -f'
alias dockerpsexited='docker ps -f status=exited -a'
alias dockerpsdead='docker ps -f status=dead -a'
alias dockerrmexited='dockerpsexited; docker rm -f -v $(docker ps -f status=exited -aq)'
alias dockerrmdead='dockerpsdead; docker rm -f $(docker ps -f status=dead -aq)'
alias dockerchkhealth='docker inspect -f "{{json .State.Health}}"'
alias dockerstate='docker inspect -f "{{json .State}}"'
alias dockerlabels='docker inspect -f "{{json .Config.Labels}}"'
alias dockernetmode='docker inspect -f "{{json .HostConfig.NetworkMode}}"'
alias dockersysprune='docker system prune'
alias gitlabrundocker='gitlab-ci-multi-runner exec docker --docker-pull-policy "if-not-present" --docker-privileged --docker-volumes "/var/run/docker.sock:/var/run/docker.sock" --docker-volumes "$HOME/.docker:/root/.docker" --docker-volumes "$HOME/.m2:/root/.m2" --docker-volumes "$HOME/.gitlab-runner/cache:/cache" '

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值