Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvidia ENTRYPOINT script pollutes stdout #203

Open
feltech opened this issue Aug 9, 2024 · 0 comments
Open

Nvidia ENTRYPOINT script pollutes stdout #203

feltech opened this issue Aug 9, 2024 · 0 comments

Comments

@feltech
Copy link

feltech commented Aug 9, 2024

The upstream nvidia/cuda images use a script in their Docker image ENTRYPOINT that prints a banner before executing any command.

This banner is printed to stdout. This is annoying when running a command via a temporary container where the stdout is important (e.g. is expected to be structured output such as XML).

Steps to reproduce

$ docker run --rm aswf/ci-base:2024.1 echo "MY MESSAGE" > message.txt
$ cat message.txt

==========
== CUDA ==
==========

CUDA Version 12.3.0

Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license

A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.

WARNING: The NVIDIA Driver was not detected.  GPU functionality will not be available.
   Use the NVIDIA Container Toolkit to start this container with GPU support; see
   https://docs.nvidia.com/datacenter/cloud-native/ .

MY MESSAGE

Mitigation

If inheriting from the image in a new Dockerfile then ENTRYPOINT [] can be used to override and disable the entrypoint script.

If running from the command-line then you can use --entrypoint "" to achieve the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant