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

Broken build while using older version of docker #2967

Open
skylax1 opened this issue Aug 7, 2024 · 1 comment
Open

Broken build while using older version of docker #2967

skylax1 opened this issue Aug 7, 2024 · 1 comment

Comments

@skylax1
Copy link

skylax1 commented Aug 7, 2024

Do you want to request a feature or report a bug?

bug

What is the current behavior?

I have an old repo that uses Circle CI + heroku cli to build and deploy my django website. Since release 9.0.0 my build is failing. Command that fails:

heroku container:push web -a $HEROKU_APP_NAME

Error:

"--platform" is only supported on a Docker daemon with experimental features enabled
 ›   Error: docker build exited with Error: 1

Apparently this happens because someone thought it was a good idea to pin build platform to linux/amd64(why this specific platform?) here

const args = ['build', '-f', dockerfile, '-t', resource, '--platform', 'linux/amd64']

My Circle CI flow uses very old docker image with python3.6 and node 10. Docker version is 18.09.7.

I know this thing is ancient, but was it necessary to add that "--platform" flag in 9.0.0?

What is the expected behavior?

heroku container:push should not fail with error. When I use older version of heroku cli (8.1.4) my build is not failing.

@k80bowman
Copy link
Contributor

Internal work item

Thank you for letting us know. We will take a look.

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

No branches or pull requests

2 participants