quick-fall-21011
01/02/2022, 7:57 AMvar image = new Image("my-image", new ImageArgs
{
ImageName = Output.Format($"{registry.LoginServer}/{CustomImage}:v1.0.0"),
Build = new DockerBuild
{
Context = relativePath
},
Registry = registryInfo,
});
Running this locally on my machine works fine, since I have dotnet (which builds my pulumi csproj) and also have docker (which is required to build this image. Running this in circle-ci, I'm not able to find an image that satisfies both conditions.
Ideally I'd like to have my whole stack defined in pulumi, but looks more like I need to build the container outside of pulumi thru some other circle-ci orb. Any suggestions/thoughts would be appreciatedstraight-intern-77892
01/02/2022, 8:49 AMquick-fall-21011
01/02/2022, 12:42 PMdocker run -it --rm --name test --entrypoint /bin/bash pulumi/pulumi
dotnet
and docker
are available+ docker:image:Image my-image creating Starting docker build and push...
+ docker:image:Image my-image creating Logging in to registry...
+ docker:image:Image my-image creating Executing ' docker version -f {{json .}}'
+ docker:image:Image my-image creating {"Client":{"Platform":{"Name":"Docker Engine - Community"},"Version":"20.10.12","ApiVersion":"1.41","DefaultAPIVersion":"1.41","GitCommit":"e91ed57","GoVersion":"go1.16.12","Os":"linux","Arch":"amd64","BuildTime":"Mon Dec 13 11:45:48 2021","Context":"default","Experimental":true},"Server":null}
+ docker:image:Image my-image creating error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
+ docker:image:Image my-image creating ' docker version -f {{json .}}' failed with exit code 1
+ docker:image:Image my-image creating error: Pulumi.ResourceException: No 'docker' command available on PATH: Please install to use container 'build' mode.
docker:image:Image (my-image):
error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
error: Pulumi.ResourceException: No 'docker' command available on PATH: Please install to use container 'build' mode.
at async Task<bool> Pulumi.Docker.Docker.UseDockerPasswordStdin(Resource logResource)+detectPasswordStdin(?)
at async Task Pulumi.Docker.Docker.LoginToRegistry(ImageRegistryUnwrap registry, Resource logResource)+(?) => { }
pulumi/pulumi
imageVersion":"20.10.12
but no running?billowy-army-68599
straight-intern-77892
01/02/2022, 3:03 PMquick-fall-21011
01/03/2022, 12:36 AM- setup_remote_docker:
version: 19.03.13
straight-intern-77892
01/03/2022, 8:57 AM