{
    "url": "https://delaparra-services.nl/knowledge-hub/env",
    "locale": "en",
    "title": "ENV: Knowledge hub | DeLaParra Services",
    "description": "Sets an environment variable baked into the image and present at runtime in every container.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/env",
        "nl": "https://delaparra-services.nl/nl/kennisbank/env"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/env.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/env.md",
        "json": "https://delaparra-services.nl/knowledge-hub/env.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/env.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/env.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env.csv",
            "encodingFormat": "text/csv",
            "name": "env.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env.json",
            "encodingFormat": "application/json",
            "name": "env.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env.md",
            "encodingFormat": "text/markdown",
            "name": "env.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env.pdf",
            "encodingFormat": "application/pdf",
            "name": "env.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env.zip",
            "encodingFormat": "application/zip",
            "name": "env.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/env/skills.zip",
            "encodingFormat": "application/zip",
            "name": "env-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [ENV](<https://delaparra-services.nl/knowledge-hub/env>)\n\n  \n\nCategory: Docker \n\n# ENV\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is ENV?\n\n \n\nENV: Sets an environment variable baked into the image and present at runtime in every container. ` ENV ` sets an environment variable in a Docker image. It is available during the rest of the build and in every container started from the image, such as ` ENV APP_ENV=production `. Use it for defaults that belong to the image itself, like the runtime mode or a port number. Values can still be overridden when a container starts.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about ENV\n\n  \n\n### What should you keep in mind with ENV?\n\n \n\nDo not put secrets in ` ENV `. They become part of the image, visible to anyone who can pull it or run ` docker inspect `. Passwords, API keys and tokens belong in environment variables set at runtime, by Compose, Kubernetes Secrets or your hosting platform. Keeping configuration outside the image also lets the same image run in test and production, which is the whole point of building it once.\n\n    \n\n### What does an example of ENV look like?\n\n \n\n```\nENV NODE_ENV=production \\ PORT=8080\n```\n\n \n\n## At a glance\n\n   CategoryDocker Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Docker terms\n\n \n\n- [digest](<https://delaparra-services.nl/knowledge-hub/digest>) \n- [Docker Hub](<https://delaparra-services.nl/knowledge-hub/docker-hub>) \n- [ENTRYPOINT](<https://delaparra-services.nl/knowledge-hub/entrypoint>) \n- [environment](<https://delaparra-services.nl/knowledge-hub/environment>) \n- [EXPOSE](<https://delaparra-services.nl/knowledge-hub/expose>) \n- [FROM](<https://delaparra-services.nl/knowledge-hub/from>)\n\n \n\n[All terms starting with E](<https://delaparra-services.nl/knowledge-hub#letter-e>)\n\n \n\n## Skills\n\n \n\n- ### Laravel environment and config\n\n \n\nUse when working with environment variables, .env files and configuration in a Laravel app - adding a new setting, APP\\_KEY, database/mail/queue credentials, config caching, secrets in CI/CD or Docker, or debugging \"env() returns null in production\". Keeps secrets out of Git and config reads cache-safe.\n\n [View skill](<https://delaparra-services.nl/skills/laravel-env-config>) [Download zip](<https://delaparra-services.nl/skills/laravel-env-config/download>) \n- ### Docker Compose Patterns\n\n \n\nUse this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides.\n\n [View skill](<https://delaparra-services.nl/skills/docker-compose-patterns>) [Download zip](<https://delaparra-services.nl/skills/docker-compose-patterns/download>) \n- ### Secrets Management\n\n \n\nImplement secure secrets management for CI/CD pipelines using Vault, AWS Secrets Manager, or native platform solutions. Use when handling sensitive credentials, rotating secrets, or securing CI/CD environments.\n\n [View skill](<https://delaparra-services.nl/skills/secrets-management>) [Download zip](<https://delaparra-services.nl/skills/secrets-management/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/env/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [.env and environment variables](<https://delaparra-services.nl/manuals/env-en-omgevingsvariabelen>) \n- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/env)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/env#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/env",
                "name": "ENV: Knowledge hub | DeLaParra Services",
                "description": "Sets an environment variable baked into the image and present at runtime in every container.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/env#term",
                    "name": "ENV",
                    "description": "Sets an environment variable baked into the image and present at runtime in every container.",
                    "termCode": "env",
                    "url": "https://delaparra-services.nl/knowledge-hub/env",
                    "inLanguage": "en",
                    "keywords": "Docker",
                    "dateModified": "2026-11-25T17:46:26+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/env#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/env#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/env#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is ENV?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Sets an environment variable baked into the image and present at runtime in every container. ENV sets an environment variable in a Docker image. It is available during the rest of the build and in every container started from the image, such as ENV APP_ENV=production. Use it for defaults that belong to the image itself, like the runtime mode or a port number. Values can still be overridden when a container starts."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with ENV?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Do not put secrets in ENV. They become part of the image, visible to anyone who can pull it or run docker inspect. Passwords, API keys and tokens belong in environment variables set at runtime, by Compose, Kubernetes Secrets or your hosting platform. Keeping configuration outside the image also lets the same image run in test and production, which is the whole point of building it once."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of ENV look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "ENV NODE_ENV=production \\ PORT=8080"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/laravel-env-config#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-compose-patterns#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/secrets-management#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/env-en-omgevingsvariabelen#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/docker-voor-je-laravel-app#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/env#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "ENV"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/env#dataset",
                "name": "ENV",
                "description": "Sets an environment variable baked into the image and present at runtime in every container.",
                "url": "https://delaparra-services.nl/knowledge-hub/env",
                "identifier": "https://delaparra-services.nl/knowledge-hub/env#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/env#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Docker",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:26+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "env.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "env-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/env/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}