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

Encountered a problem while docker compose build #204

Open
FarawayBIKON opened this issue Nov 17, 2023 · 1 comment
Open

Encountered a problem while docker compose build #204

FarawayBIKON opened this issue Nov 17, 2023 · 1 comment

Comments

@FarawayBIKON
Copy link

I tried to start docker compose build base image according to your teaching document, but returned an error: Service base image has either an image nor a build context specified At least one must be provided

@tropicoo
Copy link
Owner

Try to run docker-compose (with dash symbol) instead of docker compose with your commands:

# Build base image
docker-compose build base-image

# Build and run all services in detached mode
docker-compose up --build -d -t 0 && docker-compose logs --tail 100 -f

# Stop all services
docker-compose stop -t 0

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

2 participants