Skip to content

Commit

Permalink
build: docker: avoid Docker Inc's "What's next" hints
Browse files Browse the repository at this point in the history
- enough spam already, thanks

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
  • Loading branch information
rpardini committed Jan 12, 2025
1 parent 06d05c6 commit 4356a41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bash/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ function check_docker_daemon_for_sanity() {
log debug "Setting DOCKER_HOST to '${current_context_docker_socket}'"
export DOCKER_HOST="${current_context_docker_socket}"

# Hide Docker, Inc spamming "What's next" et al.
export DOCKER_CLI_HINTS=false

# Shenanigans to go around error control & capture output in the same effort, 'docker info' is slow.
declare docker_info docker_buildx_version
docker_info="$({ docker info 2> /dev/null && echo "DOCKER_INFO_OK"; } || true)"
Expand Down

0 comments on commit 4356a41

Please sign in to comment.