sparse-carpenter-66912
07/23/2025, 7:31 AMis_container
or something in the documentationjolly-florist-66728
07/23/2025, 7:31 AMImageSpec.is_container()
method to check if the current environment is the container built from the given ImageSpec. This method returns True if running inside the container, and False otherwise. For details, see the Flytekit ImageSpec API reference.
Note: There is a known issue where is_container()
may return True during fast registration (e.g., pyflyte run --remote
or pyflyte register
), not just during actual container execution. This is acknowledged as a bug in the Flyte community (GitHub issue). Would you like more detail on the technical cause or workarounds?
Sources:
- Flytekit ImageSpec API reference
- GitHub issue: ImageSpec.is_container returns True during fast registration 👍 1 button 👎 0 button 💡 Hint: Mention @ancient-wolf-19325 in the thread for followups.freezing-airport-6809
sparse-carpenter-66912
07/23/2025, 1:36 PMstorage_options
in my S3-connections at all