Skip to content

Commit

Permalink
bin/docker support warning message suppression from user config dir
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ndimiduk authored Sep 22, 2024
1 parent 186a2b8 commit 6ef0288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/docker.in
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 6ef0288

Please sign in to comment.