IBM / build-blockchain-insurance-app

Sample insurance application using Hyperledger Fabric
https://developer.ibm.com/patterns/build-a-blockchain-insurance-app/
Apache License 2.0
757 stars 495 forks source link

build_ubuntu.sh error: pull access denied for shop-ca, repository does not exist #86

Open yanalanhe opened 5 years ago

yanalanhe commented 5 years ago

Running build_ubuntu.sh on my Ubuntu 18.04 AWS EC2 t2.micro got following error:

write /var/lib/docker/tmp/GetImageBlob661979273: no space left on device

Pulling shop-ca (shop-ca:latest)... ERROR: pull access denied for shop-ca, repository does not exist or may require 'docker login'

Prior to running build_ubuntu.sh, I ran docker login that Login Succeeded. I am also able to install packages via npm without sudo. Running "sudo ./build_ubuntu.sh" got same error.

yanalanhe commented 5 years ago

Here are my two related Dockerfiles:

  1. build-blockchain-insuarance-app/web/Dockerfile

FROM docker.io/library/node:8.9.0 ENV NODE_ENV production ENV PORT 3000 ENV DOCKER_SOCKET_PATH /host/var/run/docker.sock ENV DOCKER_CCENV_IMAGE hyperledger/fabric-ccenv:latest RUN mkdir /app COPY . /app WORKDIR /app RUN npm i && npm i --only=dev && npm run build && npm prune EXPOSE 3000 CMD ["npm", "run", "serve"]

  1. build-blockchain-insuarance-app/peer-base.yaml

version: '2'

services: peer-base: environment: