Skip to content

[Bug]: Container Build on M1 Mac fails with platform error. #1330

@jdanton

Description

@jdanton

What happened?

When following this doc:

https://github.com/Azure/data-api-builder/blob/main/docs/running-using-a-container.md

I get the following error:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
docker: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 0.0.0.0:0: listen tcp 0.0.0.0:5000: bind: address already in use.
ERRO[0130] error waiting for container: context canceled

Version

Microsoft.DataApiBuilder 0.5.34

What database are you using?

PostgreSQL

What hosting model are you using?

Custom Docker host

Which API approach are you accessing DAB through?

REST

Relevant log output

joey@Joeys-MacBook-Pro samples % docker run -it -v dab-config.json:/App/dab-config.json -p 5000:5000 mcr.microsoft.com/azure-databases/data-api-builder:latest --ConfigFileName dab-config.json
Unable to find image 'mcr.microsoft.com/azure-databases/data-api-builder:latest' locally
75f1877b20af: Download complete 
26b72a0d9ae9: Download complete 
9ab259e76745: Download complete 
144ef4f6c4b8: Download complete 
08c6d9bfa585: Download complete 
3f9582a2cbe7: Download complete 
80b88e0117ce: Download complete 
2d43258c565c: Download complete 
**WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested**
docker: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5000 -> 0.0.0.0:0: listen tcp 0.0.0.0:5000: bind: address already in use.
ERRO[0130] error waiting for container: context canceled

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageissues to be triaged

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions