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

raspberry pi - install & use retropie under docker container #8

Open
lpt2007 opened this issue Feb 18, 2019 · 0 comments
Open

raspberry pi - install & use retropie under docker container #8

lpt2007 opened this issue Feb 18, 2019 · 0 comments

Comments

@lpt2007
Copy link
Owner

lpt2007 commented Feb 18, 2019

I create folders:

mkdir /home/pi/docker
mkdir /home/pi/docker/retropie

create and edit Dockerfile:
nano /home/pi/docker/retropie/Dockerfile

add this:

FROM raspbian/stretch

RUN apt-get update \
    && apt-get upgrade -y \
    && apt-get install -y --no-install-recommends ca-certificates git lsb-relea$
    && useradd -d /home/retropie -G sudo -m pi \
    && echo "pi ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/pi

WORKDIR /home/retropie

USER pi

RUN git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git \
    && cd RetroPie-Setup \
    && sudo chmod +x retropie_setup.sh \
    && sudo ./retropie_packages.sh setup basic_install \
    && sudo rm -rf /var/lib/apt/lists/* && sudo chown -R pi /home/retropie

RUN sudo usermod -aG adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,inp$

ENTRYPOINT "/usr/bin/emulationstation"

CMD "#auto"

build docker container:
sudo docker build -t retropie /home/pi/docker/retropie

from ssh I run this:

docker run -v /dev/snd:/dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/vchiq:/dev/vchiq -e DISPLAY=unix$DISPLAY --privileged -t retropie
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

1 participant