mirror of
https://github.com/containers/podman.git
synced 2025-07-03 09:17:15 +08:00
bin/docker support warning message suppression from user config dir
The `bin/docker` command should also honor the presence of `$XDG_CONFIG_HOME/containers/nodocker` when considering whether it should print the warning message. Signed-off-by: Nick Dimiduk <ndimiduk@gmail.com>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
[ -e ${ETCDIR}/containers/nodocker ] || \
|
||||
[ -e ${ETCDIR}/containers/nodocker ] || [ -e "\${XDG_CONFIG_HOME-\$HOME/.config}/containers/nodocker" ] || \
|
||||
echo "Emulate Docker CLI using podman. Create ${ETCDIR}/containers/nodocker to quiet msg." >&2
|
||||
exec ${BINDIR}/podman "$@"
|
||||
|
Reference in New Issue
Block a user