Skip to content

Commit 2234fb8

Browse files
committed
use implicit DOCKER_HOST instead
1 parent 427d0fe commit 2234fb8

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

apps/supervisor/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ MANAGED_WORKER_SECRET=managed-secret
77
# Point this at the webapp in prod
88
TRIGGER_API_URL=http://localhost:3030
99

10-
# Point this at the OTel collector in prod
10+
# Point this at the webapp or an OTel collector in prod
1111
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:3030/otel
1212
# Use this on macOS
1313
# OTEL_EXPORTER_OTLP_ENDPOINT=http://host.docker.internal:3030/otel

apps/supervisor/src/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const Env = z.object({
4444

4545
// Used by the workload manager, e.g docker/k8s
4646
DOCKER_NETWORK: z.string().default("host"),
47-
DOCKER_SOCKET_PATH: z.string().default("/var/run/docker.sock"),
4847
OTEL_EXPORTER_OTLP_ENDPOINT: z.string().url(),
4948
ENFORCE_MACHINE_PRESETS: z.coerce.boolean().default(false),
5049
KUBERNETES_IMAGE_PULL_SECRETS: z.string().optional(), // csv

apps/supervisor/src/workloadManager/docker.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ export class DockerWorkloadManager implements WorkloadManager {
1313
private readonly docker: Docker;
1414

1515
constructor(private opts: WorkloadManagerOptions) {
16-
this.docker = new Docker({
17-
socketPath: env.DOCKER_SOCKET_PATH,
18-
});
16+
this.docker = new Docker();
1917

2018
if (opts.workloadApiDomain) {
2119
this.logger.warn("⚠️ Custom workload API domain", {

0 commit comments

Comments
 (0)