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

MySQL 5.7 on Apple Silicon throws "no matching manifest for linux/arm64/v8 in the manifest list entries" #32

Open
javier-elizaga opened this issue Nov 17, 2023 · 0 comments

Comments

@javier-elizaga
Copy link

javier-elizaga commented Nov 17, 2023

Hi,

As described here the issue is resolved adding a new parameter platform: linux/x86_64.

The changes are adding "platform" variable to the Image class and propagate the value to Docker class to use it in:

private fun startContainer() {
        val dbPort = ExposedPort.tcp(portBinding.first)
        docker.createContainerCmd(imageName)
                .withPlatform(platform)
                .withName(containerName)
                .withEnv(env.map { "${it.key}=${it.value}" })
                .withExposedPorts(dbPort)
                .withHostConfig(newHostConfig().withPortBindings(Ports(dbPort, bindPort(portBinding.second))))
                .exec()
        docker.startContainerCmd(containerName).exec()
}

Thanks

capitaorev added a commit that referenced this issue Mar 12, 2024
Approved-by: Donato Lucia
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