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

Docker-Compose #14

Open
lu0713 opened this issue Sep 4, 2020 · 2 comments
Open

Docker-Compose #14

lu0713 opened this issue Sep 4, 2020 · 2 comments

Comments

@lu0713
Copy link

lu0713 commented Sep 4, 2020

When I run the following command: sudo docker-compose pull && docker-compose up

I get the following errors:
Pulling catalog-db ... done
Pulling catalog ... done
Pulling user-db ... done
Pulling user-redis-db ... done
Pulling user ... done
Pulling redis-db ... done
Pulling cart ... error
Pulling front-end ... error
Pulling jaeger ... done
Pulling postgres ... done
Pulling order ... error
Pulling payment ... error

ERROR: for order manifest for gcr.io/vmwarecloudadvocacy/order-postgres-tracing:3.0 not found: manifest unknown: Failed to fetch "3.0" from request "/v2/vmwarecloudadvocacy/order-postgres-tracing/manifests/3.0".

ERROR: for front-end manifest for gcr.io/vmwarecloudadvocacy/acmeshop-front-end:2.2.0 not found: manifest unknown: Failed to fetch "2.2.0" from request "/v2/vmwarecloudadvocacy/acmeshop-front-end/manifests/2.2.0".

ERROR: for payment manifest for gcr.io/vmwarecloudadvocacy/acmeshop-payment:4.6 not found: manifest unknown: Failed to fetch "4.6" from request "/v2/vmwarecloudadvocacy/acmeshop-payment/manifests/4.6".

ERROR: for cart manifest for gcr.io/vmwarecloudadvocacy/acmeshop-cart:1.3.1 not found: manifest unknown: Failed to fetch "1.3.1" from request "/v2/vmwarecloudadvocacy/acmeshop-cart/manifests/1.3.1".
ERROR: manifest for gcr.io/vmwarecloudadvocacy/order-postgres-tracing:3.0 not found: manifest unknown: Failed to fetch "3.0" from request "/v2/vmwarecloudadvocacy/order-postgres-tracing/manifests/3.0".
manifest for gcr.io/vmwarecloudadvocacy/acmeshop-front-end:2.2.0 not found: manifest unknown: Failed to fetch "2.2.0" from request "/v2/vmwarecloudadvocacy/acmeshop-front-end/manifests/2.2.0".
manifest for gcr.io/vmwarecloudadvocacy/acmeshop-payment:4.6 not found: manifest unknown: Failed to fetch "4.6" from request "/v2/vmwarecloudadvocacy/acmeshop-payment/manifests/4.6".
manifest for gcr.io/vmwarecloudadvocacy/acmeshop-cart:1.3.1 not found: manifest unknown: Failed to fetch "1.3.1" from request "/v2/vmwarecloudadvocacy/acmeshop-cart/manifests/1.3.1".

@jz543fm
Copy link

jz543fm commented Sep 27, 2020

Resolved
I fixed this issue immediately because you had wrong versions of images, I just checked https://console.cloud.google.com/gcr/images/vmwarecloudadvocacy and docker-compose up -d **succeeded**

version: '3'

services:
catalog-db:
image: gcr.io/vmwarecloudadvocacy/acmeshop-catalog-db:latest
hostname: catalog-db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
- MONGO_INITDB_DATABASE=acmefit
cap_add:
- CHOWN
- SETGID
- SETUID
catalog:
image: gcr.io/vmwarecloudadvocacy/acmeshop-catalog:1.2.1
hostname: catalog
restart: always
ports:
- '8082:8082'
cap_add:
- NET_BIND_SERVICE
environment:
- CATALOG_DB_USERNAME=mongoadmin
- CATALOG_DB_PASSWORD=secret
- CATALOG_DB_HOST=catalog-db
- CATALOG_PORT=8082
- CATALOG_DB_PORT=27017
- CATALOG_VERSION=v1
- USERS_HOST=user
- USERS_PORT=8083
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
depends_on:
- catalog-db
user-db:
image: gcr.io/vmwarecloudadvocacy/acmeshop-user-db:latest
hostname: user-db
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
- MONGO_INITDB_DATABASE=acmefit
cap_add:
- CHOWN
- SETGID
- SETUID
tmpfs:
- /tmp:rw,noexec,nosuid
user-redis-db:
image: bitnami/redis
hostname: user-redis-db
restart: always
environment:
- REDIS_PASSWORD=secret
ports:
- '6379'
user:
image: gcr.io/vmwarecloudadvocacy/acmeshop-user:2.0.1
hostname: user
restart: always
ports:
- '8083:8083'
cap_add:
- NET_BIND_SERVICE
environment:
- USERS_DB_USERNAME=mongoadmin
- USERS_DB_PASSWORD=secret
- USERS_DB_HOST=user-db
- USERS_DB_PORT=27017
- USERS_PORT=8083
- REDIS_DB_HOST=user-redis-db
- REDIS_DB_PORT=6379
- REDIS_DB_PASSWORD=secret
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
redis-db:
image: bitnami/redis
hostname: redis-db
restart: always
environment:
- REDIS_PASSWORD=secret
ports:
- '6379:6379'
cart:
image: gcr.io/vmwarecloudadvocacy/acmeshop-cart:2.0.1
hostname: cart
restart: always
environment:
- REDIS_HOST=redis-db
- REDIS_PORT=6379
- REDIS_PASSWORD=secret
- CART_PORT=5000
- AUTH_MODE=1
- USER_HOST=user
- USER_PORT=8083
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
ports:
- '5000:5000'
depends_on:
- redis-db
front-end:
image: gcr.io/vmwarecloudadvocacy/acmeshop-front-end:2.1.0
hostname: front-end
restart: always
ports:
- '3000:3000'
cap_add:
- NET_BIND_SERVICE
environment:
- PORT=3000
- USERS_HOST=user
- CATALOG_HOST=catalog
- CART_HOST=cart
- ORDER_HOST=order
- USERS_PORT=8083
- CATALOG_PORT=8082
- CART_PORT=5000
- ORDER_PORT=6000
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6832
jaeger:
image: jaegertracing/all-in-one:1.11
hostname: jaeger
restart: always
ports:
- '14268:14268'
- '16686:16686'
- '5778:5778'
- '6831-6832:6831-6832/udp'
- '5775:5775/udp'
postgres:
image: postgres:12.1-alpine
hostname: postgres
restart: always
ports:
- '5432'
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
order:
image: gcr.io/vmwarecloudadvocacy/order-postgres-tracing:latest
hostname: order
restart: always
ports:
- '6000:6000'
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- ORDER_DB_USERNAME=postgres
- ORDER_AUTH_DB=postgres
- ORDER_DB_PASSWORD=password
- ORDER_DB_HOST=postgres
- ORDER_DB_PORT=5432
- ORDER_PORT=6000
- PAYMENT_PORT=9000
- PAYMENT_HOST=payment
- AUTH_MODE=1
- USER_PORT=8083
- USER_HOST=user
depends_on:
- postgres
payment:
image: gcr.io/vmwarecloudadvocacy/acmeshop-payment:1.1.0
hostname: payment
restart: always
ports:
- '9000'
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6832
- PAYMENT_PORT=9000
- USERS_HOST=user
- USERS_PORT=8083

@ShawnS2ho
Copy link

I confirmed the reported issue is fixed by updating the correct version of yml as commented above.

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

3 participants