Open pbadams opened 1 year ago
I got around this and cd-ing into Docker-curriculum/static-site
and just building the container on my device using docker build -t <username>/<image_name> --platform=linux/arm64/v8 .
Edit: I updated to the latest docker 23.0.5, enabling settings > features for development > "rosetta for x86 emulation"
to expand on the above for learners like me who had to google it to get it to work on my raspberry pi...
cd to wherever you want
git clone https://github.com/prakhar1989/docker-curriculum.git
cd docker-curriculum/static-site
docker build -t prakhar1989/static-site --platform=linux/arm64/v8 .
docker run --rm -it prakhar1989/static-site
Above is the process I followed to get it to work, which builds an image suitable for the platform, which you then run.
Attempting the Docker tutorial on macOS Monterey 12.6.1 (21G217) on an Apple Silicon M1 Pro. Docker for Desktop is installed and functioning.
Running
docker run --rm -it prakhar1989/static-site
fails with the following: