mdolab docker image sudo password
simranjeetsinghwork opened this issue · 7 comments
I am trying to use mdolab docker image to follow the tutorials, but I can't find the sudo password for "mdolabuser" user.
Starting container as "root" user isn't helping as it apparently breaks all PATH variables, but it might just be a problem with my naive approach. I would appreciate any help.
Regards,
Simranjeet
For normal usage, you shouldn't need a password I think. Yes you should not start with the root user, as the .bashrc for the user account has environment variables set up to make the MACH installation work.
Thanks for the reply!
I don't have write privileges when working within the host machine's volume which is bound to container's "/home/mdolabuser/mount/" directory as suggested in tutorial.
So I have resorted to working within some another directory (in container) and manually transferring files between host and container.
This should work just fine:
docker run -it --mount type=bind,source=<path-to-MACH-Aero>,target=/home/mdolabuser/MACH-Aero --name app mdolab/public:u20-gcc-ompi-latest
I just tested this and I was able to create directories without problems.
Do you need to run sudo docker
on your computer? You should configure Docker so that it does not need sudo access, see for example instructions here.
I did the same, but it doesnt work for me.
No, I do not need to prefix "docker" with "sudo" so I assume it is already setup as "docker" group (that grants "root" equivalent privileges).
Maybe it has something to do with SELinux rules.
https://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker
I will try this when I get access to the system.
Yeah this seems like an OS-specific issue with Docker (note that we only test our code on Ubuntu and we don't really provide much support for Docker-based installas), not really something to do with our containers. I'm going to close the issue for now but if you need something from us feel free to comment on the thread again.
Hi,
I'm facing the same problem where I need the password for the 'mdolabusr' user. This is because I need to develop upon adflow so installing other packages with 'apt' is necessary. Would you mind giving me some suggestions to solve this problem? Thanks.