{environments.length} total
{#if loading && environments.length === 0}

Loading environments...

{:else if environments.length === 0}

No environments found

{:else}
{#each environments as env (env.id)} {@const testResult = testResults[env.id]}
{env.name}
{#if env.connectionType === 'socket' || !env.connectionType} {env.socketPath || '/var/run/docker.sock'} {:else if env.connectionType === 'hawser-edge'} Edge connection (outbound) {:else} {env.protocol || 'http'}://{env.host}:{env.port || 2375} {/if}
{#if testResult}
{#if testResult === 'testing'}
Testing connection...
{:else if testResult.success}
Connected
{#if testResult.info}
Host: {testResult.info.name}
Docker: {testResult.info.serverVersion}
Containers: {testResult.info.containers} | Images: {testResult.info.images}
{/if} {:else}
Failed
{#if testResult.error}
{testResult.error}
{/if} {/if}
{/if}
{/each}
{/if}
Add environment
{#if formError}
{formError}
{/if}

Paste a full Docker URL to auto-fill the fields below

{#if formProtocol === 'https'} {:else} {/if} {formProtocol === 'https' ? 'HTTPS (TLS)' : 'HTTP'} HTTP HTTPS (TLS)
{#if formProtocol === 'https'}

TLS certificates (optional)

{/if}
Edit environment
{#if formError}
{formError}
{/if}

Paste a full Docker URL to auto-fill the fields below

{#if formProtocol === 'https'} {:else} {/if} {formProtocol === 'https' ? 'HTTPS (TLS)' : 'HTTP'} HTTP HTTPS (TLS)
{#if formProtocol === 'https'}

TLS certificates (optional)

{/if}