You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to make so initium will use the current context.
Initium is trying to use the default socket to connect to docker
> $ initium build ⬡ 19.0.0 [±main ✓]
Dockerfile Location: Dockerfile.initium
Building initium-nodejs-demo-app:latest
2023/09/27 14:47:57 FATA Failed to build docker image Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker instead as the rancher-desktop set as current context
lucalanziani@LUCAL-ITMAC22 ~/code/initium-nodejs-demo-app [14:48:06]
> $ docker context ls ⬡ 19.0.0 [±main ✓]
NAME DESCRIPTION DOCKER ENDPOINT ERROR
colima colima unix:///Users/lucalanziani/.colima/default/docker.sock
default Current DOCKER_HOST based configuration unix:///var/run/docker.sock
rancher-desktop * Rancher Desktop moby context unix:///Users/lucalanziani/.rd/docker.sock
We can force initium to use that conext setting the DOCKER_HOST environment variable
lucalanziani@LUCAL-ITMAC22 ~/code/initium-nodejs-demo-app [14:48:17]
> $ DOCKER_HOST=unix:///Users/lucalanziani/.rd/docker.sock initium build ⬡ 19.0.0 [±main ✓]
Dockerfile Location: Dockerfile.initium
Building initium-nodejs-demo-app:latest
Step 1/10 : FROM node:20.2.0 AS build-env
20.2.0: Pulling from library/node
b04fae59f135: Pulling fs layer
24cef00b9ad9: Pulling fs layer
1db91b65282b: Pulling fs layer
54db3e52d959: Waiting
2b2d5a4c9703: Waiting
c07b95efdf4b: Waiting
c3f4f824faef: Waiting
d39d890dd567: Waiting
A better option is to have initium be aware of the current context
The text was updated successfully, but these errors were encountered:
We need to make so initium will use the current context.
Initium is trying to use the default socket to connect to docker
docker instead as the rancher-desktop set as current context
We can force initium to use that conext setting the
DOCKER_HOST
environment variableA better option is to have initium be aware of the current context
The text was updated successfully, but these errors were encountered: