Open ZachManno opened 2 years ago
SOLVED:
I have an M1 Apple Silicon chip Mac with default Docker arch ARM64
. To fix, build the docker image with AMD64
:
docker build --platform linux/amd64 --no-cache -t test-container .
Also on M1. For those using docker-compose, you can set the DOCKER_DEFAULT_PLATFORM environment variable
i.e.
export DOCKER_DEFAULT_PLATFORM=linux/amd64
I've an M2 and I had to add --platform=linux/amd64
to my docker file i.e. FROM --platform=linux/amd64 maven:latest
to make it work.
Hi Team,
I have added --platform=linux/amd64 to my docker file and now I am not getting the error "Unable to locate package google-chrome-stable" but now my installation is getting stuck at:
=> [ 7/12] RUN apt-get install -y google-chrome-stable 1497.6s
=> => # 1. Africa 6. Asia 11. System V timezones
=> => # 2. America 7. Atlantic Ocean 12. US
=> => # 3. Antarctica 8. Europe 13. None of the above
=> => # 4. Australia 9. Indian Ocean
=> => # 5. Arctic Ocean 10. Pacific Ocean
=> => # Geographic area:
I guess this is expecting some input, but how can I pass the input from the docker file? I don't want to manually do anything when installing through dockerfile....even if I try to enter anything manually, it does not take the input..... overall, installation does not go beyond this point ......any one faced it ?
Also on M1. For those using docker-compose, you can set the DOCKER_DEFAULT_PLATFORM environment variable i.e.
export DOCKER_DEFAULT_PLATFORM=linux/amd64
This is also possible to use in the docker-compose.yml:
services:
app:
platform: linux/x86_64
build:
dockerfile: Dockerfile
...
Of course this also does not take advantage of the M1 and everything loads forever. Looking for a pure M1 solution still!
I'm now using this workaround (using chromium instead of chrome) - works on M1!
apt-get install -y chromium
Trying to run
3.9-selenium
Have used different versions of python including slim-bullseye and regular bullseye as well