Home · Business · IT, Data & Security · Software development

PARTLY

As of 13 August 2026, AI can only partly containerise your business application with Docker.

This still needs a person who signs their name to it.

Can you do it?

15 minutesto a draft.

1 hourto something you’d act on.

Cost, all in£0

Skill neededdeveloper

Who has to check ita colleague

What the alternative costsThe supplied tool data gives no reliable price for a human developer or for a Docker containerisation service, so no alternative cost is stated.

If this goes wrong, the image may fail in production, expose a secret, lose persistent data or take the application offline.

What to actually do

  1. Hand it to a person

    The route this page recommends

    A person who owns the outcome does this end to end, worth it when the failure is dear.

  2. Use a tool built for this

    Second choice
  3. Do it yourself

    The distant third

    A chat interface, developer skill, and roughly 1 hour until you can act on the result.

    How to actually do it

    1. Open the application repository and record its file tree, language and framework versions, build files, local start command, test command, required ports and required external services.
    2. Remove secret values from the material, record only environment-variable names and purposes, and note which directories need persistent storage.
    3. Paste those details into the prompt and ask the model to generate the Dockerfile, Docker Compose file if needed, .dockerignore, health check and commands.
    4. Create the generated files in a separate branch of the repository, then compare every dependency, command, port, volume and environment variable against the actual application files.
    5. Build the image locally with Docker, start the container or Compose services, inspect the logs and run the application's existing test command inside the container.
    6. Test the health check, application endpoint, service-to-service networking, restart behaviour, persistent data and shutdown behaviour, then ask a colleague familiar with the deployment environment to check the configuration before release.

    Prompt

    You are helping me containerise a business application with Docker. Do not invent files, commands, ports, environment variables, services, credentials or deployment assumptions. First inspect the information below and list any missing details that could change the design. Then produce a minimal, production-conscious solution for the stated application.
    
    Application repository or relevant file tree:
    [PASTE FILE TREE OR REPOSITORY DETAILS]
    
    Main language, framework and version:
    [PASTE DETAILS]
    
    How the application is started locally:
    [PASTE COMMANDS]
    
    Build and dependency files:
    [PASTE package file, requirements file, project file, lock file or equivalent]
    
    Required services such as databases, queues or caches:
    [PASTE DETAILS, OR SAY NONE]
    
    Application port and any other required ports:
    [PASTE DETAILS]
    
    Files and directories that must persist:
    [PASTE DETAILS, OR SAY NONE]
    
    Environment variables, with secret values removed:
    [PASTE NAMES AND PURPOSES ONLY]
    
    Target environment:
    [PASTE LOCAL DEVELOPMENT, CI, A UK CLOUD HOST, OR OTHER TARGET]
    
    Constraints:
    [PASTE SECURITY, COMPLIANCE, ARCHITECTURE OR OPERATING SYSTEM CONSTRAINTS]
    
    Return:
    1. A Dockerfile, with the base image and each build step explained.
    2. A docker-compose.yml only if multiple services are required.
    3. A .dockerignore.
    4. Any required entrypoint or health-check files.
    5. Exact commands to build, run, stop, inspect logs and run the application's tests.
    6. A list of assumptions and unresolved decisions.
    7. A verification checklist covering dependency installation, application startup, ports, health checks, persistence, networking, permissions, secret handling and graceful shutdown.
    8. A short production-readiness warning listing anything that still needs a qualified technical review.
    
    Keep secrets out of all generated files. Do not recommend running as root unless you explain why it is necessary. Do not claim the configuration is production-ready until the commands and tests have been run against the actual repository.

    Open it prefilled in ChatGPT or Claude, or copy it into Gemini, which takes no prefill link.

What it gets wrong

  • AI cannot discover undocumented deployment assumptions, firewall rules, storage policies or network dependencies from a short description.
  • It can choose an unsuitable base image, dependency version, user permission or health check while presenting the configuration as plausible.
  • It cannot confirm that secrets, personal data or persistent business data are handled safely without access to your infrastructure and policies.
  • It cannot replace running the image through your real CI, staging and production-like environment.
  • It cannot take responsibility if the container causes an outage, data loss or an exposed service.

What caps this at PARTLY: verification cost, judgement under ambiguity and stakes of error.

How we scored this

Five axes, each scored nought to two by hand: ten means AI carries the task cleanly, and the thresholds that turn a total into YES, PARTLY or NO are published in the methodology. Each axis name links to its definition.

AxisScore (0–2)
Output2
Inputs1
Verification1
Liability1
Effort delta2
Total7 / 10

FAQ

Can ChatGPT write a Dockerfile for my application?
Yes, it can draft a Dockerfile and related Compose configuration from your repository details. You still need to build the image, run the application and check dependencies, ports, permissions, storage and secrets against the real environment.
Can AI containerise an application without Docker experience?
Only partly. AI can explain commands and produce a first configuration, but diagnosing failed builds, networking, volumes and production failures normally requires Docker and application knowledge.
Is it safe to let AI create my Docker configuration?
Treat the output as an untested code change, not as a safe deployment plan. Check that it does not copy secrets into an image, expose unnecessary ports, run with excessive permissions or discard persistent data, and have a technical colleague review it before release.
What information does AI need to Dockerise an application?
Give it the repository structure, language and framework versions, dependency files, start and test commands, ports, required services, persistent directories, secret names and deployment target. Missing any of these can produce a container that builds but does not run correctly in your environment.

Nearby answers

Assessed by gpt-5.6-luna (gpt-5.6-luna) on 2026-08-13, second-checked by an independent model. Wrong somewhere? Email [email protected] and it gets re-checked.

The newsletter

AI news, new answers and product picks, straight to your inbox.