The installation process for Linux is described in the installation manual.
In a nutshell:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Next create a 'docker' group and add your user to that group:
sudo groupadd docker
sudo usermod -aG docker ${USER}
Log out and log back in so that your group membership is re-evaluated or use newgrp docker
.
You want to install Docker Desktop: install Docker Desktop in Windows / install Docker Desktop on Mac. If your OS version is too old for that, you can try to install Docker Toolbox instead.
(commands given for Linux, if adaptations are required for Mac or Windows, please let me know so I can update this page)
It may be necessary to run first docker login gitlab-research.centralesupelec.fr:4567
Run docker run --rm --detach --publish 3000:3000 --env TITLE=2EL5020 gitlab-research.centralesupelec.fr:4567/galtier/2el5020_webservices/2el5020
or, if you want to "mount" a host directory to the /workspace
directory in the container:
docker run --rm --detach --publish 3000:3000 --env TITLE=2EL5020 --volume YOUR_CHOICE_OF_PATH:/workspace:rw gitlab-research.centralesupelec.fr:4567/galtier/2el5020_webservices/2el5020
and to use your host user id and group id (XXXX is given by id -u
and YYYY by id -g
):
docker run --rm --detach --publish 3000:3000 --env TITLE=2EL5020 --env PUID=XXXX --env PGID=YYYY --volume YOUR_CHOICE_OF_PATH:/workspace:rw gitlab-research.centralesupelec.fr:4567/galtier/2el5020_webservices/2el5020
Use a web browser and visit http://127.0.0.1:3000/
you should get:
note: user = abc, password = abc
sudo: no password