SIMVIA Docker version of Code_Aster - help needed

Hi.

I managed to install docker on Ubuntu 22.04 under WSL and I stuck. Next thing I think would be pulling Docker image, so I’ve written in terminal:

docker pull simvia/code_aster:stable

which resulted:

[upl-image-preview uuid=453b5c86-da34-49d0-aa49-7dcedb6ecd4c url=image.png alt={TEXT?}]

I need to be guided by hand, I’m just a simple mechanical engineer.

Hello,

This error probably comes from your rights on your virtual machine. You should try to do

sudo docker pull simvia/code_aster:stable

Let us know if this solved it. You’ll have to use sudo everytime you’re using docker though. If you just want to use docker instead of sudo docker, you may follow this tutorial: Linux post-installation steps for Docker Engine | Docker Docs

Best,

Louis

@louis.simvia

so simple and so obvious, but haven’t figured out that on my own…

It’s downloading :slight_smile:

Thank you

@k_zurawski

next thing:

u22@W2:/mnt/c/Users/KrzysztofZurawski$ docker run --rm \

            --mount type=bind,source=$(pwd),target=/home/user/data \

            simvia/code_aster:stable

docker: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head “http://%2Fvar%2Frun%2Fdocker.sock/_ping”: dial unix /var/run/docker.sock: connect: permission denied

Run ‘docker run --help’ for more information

@k_zurawski

sudo again

I added the lines to .bashrc and after sourcing run_aster it did run correctly.

That means a lot to me.

Thank you!

You don’t need to use sudo if your username has been added to the group “docker”.

sudo usermod -aG docker $USER

Reboot your machine afterwards to take effect. If the group docker does not exist, first create it.

sudo groupadd docker

@scimulate Thanks mate.