Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yanalanhe opened this issue Aug 1, 2019 · 1 comment

Comments

@yanalanhe
Copy link

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
Copy link
Author

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:
- CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=buildblockchaininsuranceapp_default
- CORE_LOGGING_LEVEL=DEBUG
- CORE_PEER_TLS_ENABLED=true
- CORE_PEER_ENDORSER_ENABLED=true
- CORE_PEER_GOSSIP_USELEADERELECTION=true
- CORE_PEER_GOSSIP_ORGLEADER=false
- CORE_PEER_PROFILE_ENABLED=true
- CORE_PEER_MSPCONFIGPATH=/peer/crypto/msp
- CORE_PEER_TLS_CERT_FILE=/peer/crypto/tls/server.crt
- CORE_PEER_TLS_KEY_FILE=/peer/crypto/tls/server.key
- CORE_PEER_TLS_ROOTCERT_FILE=/peer/crypto/tls/ca.crt
working_dir: /peer
command: peer node start
volumes:
- /var/run/:/host/var/run/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant