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

Current README setup does not work on Ubuntu 20.04.3 LTS #1

Open
RicoFio opened this issue Feb 9, 2022 · 3 comments
Open

Current README setup does not work on Ubuntu 20.04.3 LTS #1

RicoFio opened this issue Feb 9, 2022 · 3 comments

Comments

@RicoFio
Copy link

RicoFio commented Feb 9, 2022

Currently, Ubuntu users cannot simply docker run following the suggested setup in the main readme.
Common error messages were:

rico@laptop$ sudo docker run -p 8888:8888 -v $(pwd):/home/jovyan/work  mtasnim/jupyter-pyspark-duckdb
WARNING: The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error

and

rico@laptop$ sudo docker run --platform linux/arm64 -p 8888:8888 -v $(pwd):/home/jovyan/work -e JUPYTER_ENABLE_LAB=yes mtasnim/jupyter-pyspark-duckdb
standard_init_linux.go:228: exec user process caused: exec format error

(The errors happen in both cases with or without sudo - using sudo was our "last resort")
To overcome issues we had to run the following in our terminals to install the required underlying virtualization software

rico@laptop$ docker run --rm --privileged multiarch/qemu-user-static:register  # Not sure this is necessary
rico@laptop$ sudo apt-get install qemu binfmt-support qemu-user-static

It is weird that we require to install this locally, but we assume that these are some hardware virtualization libraries which cannot be brought in to docker.

After the above steps are taken, the remaining commands of the setup should work out of the box.

Thanks @keerthybalan for finding this!

@keerthybalan
Copy link

No problem! Glad it worked :)

@TimothyDorr95
Copy link

Thank you for posting this.
Was stuck and after installing this locally it works!

@Thomasjurriaans
Copy link

This saved me big time, thanks!!

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

4 participants