diff --git a/README.md b/README.md index 95fd65e479..9db70bd4bb 100644 --- a/README.md +++ b/README.md @@ -53,12 +53,13 @@ To compile AlphaRTC, please refer to the following steps 1. Prerequisites - Make sure Docker is installed on your system. + Make sure Docker is installed on your system and add user to docker group. ``` shell # Install Docker curl -fsSL get.docker.com -o get-docker.sh sudo sh get-docker.sh + sudo usermod -aG docker ${USER} ``` 2. Clone the code @@ -71,7 +72,7 @@ To compile AlphaRTC, please refer to the following steps ``` shell cd AlphaRTC - sudo make all + make all ``` You should then be able to see two Docker images, `alphartc` and `alphartc-compile` using `sudo docker images` diff --git a/dockers/Dockerfile.compile b/dockers/Dockerfile.compile index 4cc112be46..e207f3339c 100644 --- a/dockers/Dockerfile.compile +++ b/dockers/Dockerfile.compile @@ -9,7 +9,7 @@ ARG UID ARG GUID RUN groupadd -f -r -g ${GUID} g${USER} -RUN useradd ${USER} -l -u ${UID} -g ${GUID} -m -s /bin/bash +RUN useradd ${USER} -l -u ${UID} -g ${GUID} -m -s /bin/bash || true # Download depot_tools ARG DEPOT_TOOLS=/opt/depot_tools