Services and User Management

The variable DB_HOST is exported in an administrator's shell with the value db.internal. The administrator wants a new container to start with DB_HOST=db.internal in its environment. Which two commands achieve this? (Choose two.)

Choose 2 answers

Show the answer

Correct answersA. podman run -e DB_HOST myapp:2.0D. podman run --env DB_HOST=db.internal myapp:2.0

-e with only a name copies the value from the calling shell, and --env with KEY=value sets it explicitly. --env-file expects a file path, so DB_HOST would be read as a filename and fail. --build-arg applies to image builds, not to run.