{
    "url": "https://delaparra-services.nl/knowledge-hub/entrypoint",
    "locale": "en",
    "title": "ENTRYPOINT: Knowledge hub | DeLaParra Services",
    "description": "The fixed executable a container always runs. Arguments from docker run (and CMD) are appended to it.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/entrypoint",
        "nl": "https://delaparra-services.nl/nl/kennisbank/entrypoint"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/entrypoint.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/entrypoint.md",
        "json": "https://delaparra-services.nl/knowledge-hub/entrypoint.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/entrypoint.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/entrypoint.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/entrypoint.csv",
            "encodingFormat": "text/csv",
            "name": "entrypoint.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/entrypoint.json",
            "encodingFormat": "application/json",
            "name": "entrypoint.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/entrypoint.md",
            "encodingFormat": "text/markdown",
            "name": "entrypoint.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/entrypoint.pdf",
            "encodingFormat": "application/pdf",
            "name": "entrypoint.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/entrypoint.zip",
            "encodingFormat": "application/zip",
            "name": "entrypoint.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/entrypoint/skills.zip",
            "encodingFormat": "application/zip",
            "name": "entrypoint-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [ENTRYPOINT](<https://delaparra-services.nl/knowledge-hub/entrypoint>)\n\n  \n\nCategory: Docker \n\n# ENTRYPOINT\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is ENTRYPOINT?\n\n \n\nENTRYPOINT: The fixed executable a container always runs. Arguments from docker run (and CMD) are appended to it. ` ENTRYPOINT ` sets the fixed program a container always runs. Arguments from ` docker run `, or from ` CMD `, are added to it. With ` ENTRYPOINT [\"php\", \"artisan\"] ` and ` CMD [\"serve\"] `, the container runs ` php artisan serve ` by default, and ` docker run myapp migrate ` runs ` php artisan migrate `.\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 ENTRYPOINT\n\n  \n\n### How is ENTRYPOINT used in practice?\n\n \n\nThis makes an image behave like a command-line tool with a sensible default action.\n\n    \n\n### What should you keep in mind with ENTRYPOINT?\n\n \n\nA common pattern is an entrypoint shell script that prepares things, such as waiting for the database or setting permissions, and ends with ` exec \"$@\" ` to run the actual command. The ` exec ` is important: it makes your application the main process, so it receives stop signals and shuts down cleanly. Use the JSON array form for both instructions to avoid an extra shell in between.\n\n    \n\n### What does an example of ENTRYPOINT look like?\n\n \n\n```\nENTRYPOINT [\"python\", \"manage.py\"] CMD [\"runserver\"]\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- [depends\\_on](<https://delaparra-services.nl/knowledge-hub/depends-on>) \n- [digest](<https://delaparra-services.nl/knowledge-hub/digest>) \n- [Docker Hub](<https://delaparra-services.nl/knowledge-hub/docker-hub>) \n- [ENV](<https://delaparra-services.nl/knowledge-hub/env>) \n- [environment](<https://delaparra-services.nl/knowledge-hub/environment>) \n- [EXPOSE](<https://delaparra-services.nl/knowledge-hub/expose>)\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- ### Docker Build Strategies\n\n \n\nUse this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.\n\n [View skill](<https://delaparra-services.nl/skills/docker-build-strategies>) [Download zip](<https://delaparra-services.nl/skills/docker-build-strategies/download>) \n- ### Multi Stage Dockerfile\n\n \n\n'Create optimized multi-stage Dockerfiles for any language or framework'\n\n [View skill](<https://delaparra-services.nl/skills/multi-stage-dockerfile>) [Download zip](<https://delaparra-services.nl/skills/multi-stage-dockerfile/download>) \n- ### Docker Project Foundations\n\n \n\nUse this skill when setting up, initializing, or Dockerizing a project, even if the user doesn't explicitly mention Docker but describes a need for containerized local development, adding a database or cache dependency, or running services without host-level installs. Covers Dockerfile, compose.yaml, and .dockerignore creation with Docker best practices.\n\n [View skill](<https://delaparra-services.nl/skills/docker-project-foundations>) [Download zip](<https://delaparra-services.nl/skills/docker-project-foundations/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/entrypoint/skills.zip>)\n\n \n\n## Manuals\n\n \n\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/entrypoint)\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/entrypoint#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/entrypoint",
                "name": "ENTRYPOINT: Knowledge hub | DeLaParra Services",
                "description": "The fixed executable a container always runs. Arguments from docker run (and CMD) are appended to it.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/entrypoint#term",
                    "name": "ENTRYPOINT",
                    "description": "The fixed executable a container always runs. Arguments from docker run (and CMD) are appended to it.",
                    "termCode": "entrypoint",
                    "url": "https://delaparra-services.nl/knowledge-hub/entrypoint",
                    "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/entrypoint#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/entrypoint#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/entrypoint#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is ENTRYPOINT?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The fixed executable a container always runs. Arguments from docker run (and CMD) are appended to it. ENTRYPOINT sets the fixed program a container always runs. Arguments from docker run, or from CMD, are added to it. With ENTRYPOINT [\"php\", \"artisan\"] and CMD [\"serve\"], the container runs php artisan serve by default, and docker run myapp migrate runs php artisan migrate."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is ENTRYPOINT used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "This makes an image behave like a command-line tool with a sensible default action."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with ENTRYPOINT?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "A common pattern is an entrypoint shell script that prepares things, such as waiting for the database or setting permissions, and ends with exec \"$@\" to run the actual command. The exec is important: it makes your application the main process, so it receives stop signals and shuts down cleanly. Use the JSON array form for both instructions to avoid an extra shell in between."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of ENTRYPOINT look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "ENTRYPOINT [\"python\", \"manage.py\"] CMD [\"runserver\"]"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-build-strategies#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/multi-stage-dockerfile#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-project-foundations#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/docker-voor-je-laravel-app#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/entrypoint#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": "ENTRYPOINT"
                    }
                ]
            },
            {
                "@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/entrypoint#dataset",
                "name": "ENTRYPOINT",
                "description": "The fixed executable a container always runs. Arguments from docker run (and CMD) are appended to it.",
                "url": "https://delaparra-services.nl/knowledge-hub/entrypoint",
                "identifier": "https://delaparra-services.nl/knowledge-hub/entrypoint#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/entrypoint#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": "entrypoint.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/entrypoint.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "entrypoint.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/entrypoint.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "entrypoint.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/entrypoint.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "entrypoint.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/entrypoint.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "entrypoint.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/entrypoint.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "entrypoint-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/entrypoint/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}