outofcontrol / mediawiki-to-gfm

Converts Mediawiki format to Github Flavoured Markdown format
79 stars 21 forks source link

Docker platform is arm64? #31

Open cristianmtr opened 6 months ago

cristianmtr commented 6 months ago

Describe the bug

Trying to run the image on WSL2 (Ubuntu on Windows) cannot find a matching image for the platform.

To Reproduce Steps to reproduce the behavior:

docker run --platform linux/amd64  -v $PWD:/app oooc/mediawiki-to-gfm --filename=filename.xml
Unable to find image 'oooc/mediawiki-to-gfm:latest' locally
latest: Pulling from oooc/mediawiki-to-gfm
Digest: sha256:ef61d222c8b025c23c8f574f40d2d8e680a4fead90eb47042a76429e482dbc48
Status: Image is up to date for oooc/mediawiki-to-gfm:latest
docker: image with reference docker.io/oooc/mediawiki-to-gfm:latest was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64/v8.
See 'docker run --help'.

Expected behavior

I've run Docker on WSL2 and it works fine.

Example:

docker run --platform linux/amd64  hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c1ec31eb5944: Pull complete
Digest: sha256:d000bc569937abbe195e20322a0bde6b2922d805332fd6d8a68b19f524b7d21d
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

Desktop (please complete the following information):

outofcontrol commented 6 months ago

Not sure how much I can help. None of this repository has been tested on Windows. Happy to have a contribution to get this working.

cristianmtr commented 6 months ago

I don't need Windows, I need linux/amd64. What system did you build the docker image for?

outofcontrol commented 6 months ago

Build: linux/arm64

kwaitsing commented 5 months ago

simply build it inside your own system

git clone https://github.com/outofcontrol/mediawiki-to-gfm.git
cd mediawiki-to-gfm/docker
./build.sh