Container applications 1280 Container name ^[-a-zA-Z0-9]+$ Container name must be alphanumeric and can contain hyphens Allow host networks in container Add capabilities net-admin setpcap sys-time net-admin Net-admin option setpcap Setpcap option sys-time Sys-time option ^(net-admin|setpcap|sys-time)$ #include #include Add custom environment variables ^[-_a-zA-Z0-9]+$ Environment variable name must be alphanumeric and can contain hyphen and underscores Set environment option value txt Set environment option value Image name in the hub-registry Constrain the memory available to a container (default: 512MB) u32:0 Unlimited u32:1-16384 Container memory in megabytes (MB) Container memory must be in range 0 to 16384 MB 512 Attach user defined network to container container network Assign static IP address to container ipv4 IPv4 address Publish port to the container Source host port u32:1-65535 Source host port start-end Source host port range (e.g. 10025-10030) Destination container port u32:1-65535 Destination container port start-end Destination container port range (e.g. 10025-10030) Protocol tcp/udp tcp udp ^(tcp|udp)$ Restart options for container no on-failure always no Do not restart containers on exit on-failure Restart containers when they exit with a non-zero exit code, retrying indefinitely (default) always Restart containers when they exit, regardless of status, retrying indefinitely ^(no|on-failure|always)$ on-failure Mount a volume into the container Source host directory txt Source host directory Destination container directory txt Destination container directory Network name Network description Prefix which allocated to that network ipv4net IPv4 network prefix ipv6net IPv6 network prefix Add registry (default docker.io) docker.io