$command */ public function withCommand(array $command): static; public function withEntrypoint(string $entryPoint): static; /** * @param array $env An array of key-value pairs */ public function withEnvironment(array $env): static; /** @param int|string|array $ports One or more ports to expose. */ public function withExposedPorts(...$ports): static; public function withHealthCheckCommand( string $command, int $intervalInMilliseconds, int $timeoutInMilliseconds, int $retries, int $startPeriodInMilliseconds ): static; public function withHostname(string $hostname): static; /** * @param array $labels */ public function withLabels(array $labels): static; public function withMount(string $localPath, string $containerPath): static; public function withName(string $name): static; public function withNetwork(string $networkName): static; public function withPortGenerator(PortGenerator $portGenerator): static; public function withPrivilegedMode(bool $privileged): static; public function withWait(WaitStrategy $waitStrategy): static; }