-
Notifications
You must be signed in to change notification settings - Fork 298
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
Running python testcontainers on Mac Silicon M1 #186
Comments
Related thread : google/cadvisor#2763 |
I came across the option of specifying the platform : docker pull --platform=linux/amd64 mysql Which works with MySqlContainer(platform='linux/amd64') as mysql:
yield mysql But I still got the timeout error. ~ » docker ps jazoulay@P6QMVFV7VH
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ccc42390b218 mysql:latest "docker-entrypoint.s…" 4 minutes ago Up 4 minutes 33060/tcp, 0.0.0.0:54094->3306/tcp beautiful_mayer |
@jossefaz I have the same problem on my M1, but I think it's image specific.
|
Yes, mysql doesn't offer an arm image yet, as far as I'm aware. You can use the mariadb image instead and things should work as expected. See here for some more details: #136 |
Some of these issues should be fixed in 3.5.0 after merging #136. Feel free to reopen if M1-specific issues crop up again. |
I am not sure if it is related to the docker installation on mac but I am not able to run testcontainers since I switched to Mac.
I got a timeout error on the
self._connect()
methodMy code is petty straightforward :
I got this output :
And then I got this traceback
The docker daemon is running and the output of
docker ps
command has no issue, but no container is running :> docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
EDIT
When trying to run
mysql:5.7.17
manually : I got this error.So it seems to be architecture-related issue since the default image is built on amd64 and m1 is arm64...I will continue to search on this and will update
The text was updated successfully, but these errors were encountered: