Docker Builder

Build Docker run commands interactively by selecting options. Add ports, volumes, environment variables, and more to create complex container configurations.

Basic Settings

Docker image to run (e.g., nginx:latest, ubuntu:20.04)
Optional name for the container instance

Runs container in background

Keep STDIN open for input

Allocate a pseudo-TTY

Auto-remove container when it exits

Give extended privileges to container

Networking

Map host ports to container ports
:
Docker network to connect container to (default: bridge)
Container hostname (visible inside container)

Storage

Mount host directories into container (host:container)
:

Environment

Set environment variables inside the container
=

Runtime

When to restart the container if it exits
User ID or name to run container as (UID:GID)
:
Working directory inside the container
Override the default entrypoint
Command to run inside the container

Resources

Memory limit (e.g., 512m, 1g)
CPU cores limit (e.g., 1.5, 2.0)

Generated Docker Run Command

docker run

Generated Docker Compose YAML