https://pulumi.com logo
#general
Title
# general
h

high-hamburger-69207

03/11/2023, 12:26 PM
Hey, I need some help!! • I am using
import * as awsx from "@pulumi/awsx";
• I am trying to build and push a dockerimage to ecr.
Pulumi code
Copy code
const image = new awsx.ecr.Image("image", {
  repositoryUrl: repository.url,
  path: "./nodeapp/",
});
• The
./nodeapp
is in same root directory, and the dockerfile looks likes this:
Copy code
FROM node:16
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "node", "index.js" ]
Error: Unhandled exception: Error: failed to register new resource image [awsxecrImage]: 2 UNKNOWN: No 'docker' command available on PATH: Please install to use container 'build' mode.
s

steep-toddler-94095

03/11/2023, 5:54 PM
Do you have docker CLI installed locally?
3 Views