#How do I create a local Docker image?
1 messages · Page 1 of 1 (latest)
Dagger itself can run the container. See for example :
- Run services in a container: https://docs.dagger.io/manuals/user/384829/services
- Execute a one-off command: https://docs.dagger.io/manuals/user/138393/exec
- Run an interactive terminal in the container: https://docs.dagger.io/manuals/user/178101/terminal
Dagger Functions enable users to spin up long-running services (as containers) and communicate with those services from other Dagger Functions or from the calling host by forwarding their ports. This is akin to a "programmable docker-compose".
The Dagger CLI can add follow-up processing to a just-in-time container, essentially enabling you to continue the pipeline directly from the command-line. Container objects expose a WithExec() function, which lets you execute a command in the corresponding container.
Any just-in-time container object can be interacted with or inspected by starting an ephemeral interactive session, directly from the CLI. This feature is very useful for debugging and experimenting since it allows you to inspect containers directly and at any stage of your Dagger Function execution.