Skip to content

Environment variables do not appear in container #8

Description

@jwansek

Tested in the full-root image, creating the container with the Cloud Console, Terraform and the CLI, it seems environment variables do not show up:

Defining environment variables in the Cloud Console

root@localhost:~# python3
Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ["FOO"]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen os>", line 685, in __getitem__
KeyError: 'FOO'
>>> exit()
root@localhost:~# echo $FOO

root@localhost:~#

Conversely, testing with this small image I made and environment variables seem to appear.

Environment variables appear to appear in another image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions