|
[Sponsors] |
February 13, 2016, 15:18 |
root in openfoam docker
|
#1 |
New Member
jeremy rutman
Join Date: Feb 2016
Posts: 1
Rep Power: 0 |
I pulled the openfoam docker, which is built on centos which i'm not familiar with (I am an ubuntu user) . 'sudo' isn't recognized nor are my usual texteditors (nano, emacs) , nor can i install with yum without being root....so unless someone has some way out I guess I will just install on the metal and skip the docker which otherwise seems like a nice idea.
|
|
February 22, 2016, 10:45 |
|
#2 |
Senior Member
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 110
Rep Power: 17 |
It seems that you can access to root with the same password as the root acount in your local linux system.
It worked for me. Regards Robert |
|
April 5, 2016, 08:50 |
|
#3 | |
New Member
shangyan
Join Date: Oct 2015
Posts: 6
Rep Power: 11 |
Quote:
start your system in virtual box.run "passwd".It will require a new password, set one.Start your Docker and openfoam.Type su and input the password you set. |
||
October 24, 2017, 08:31 |
|
#4 |
Member
Join Date: May 2016
Posts: 33
Rep Power: 10 |
I tried OpenFOAM v1706 on Ubuntu 16.04, using the Docker-installation method, which is based on the installOpenFOAM and a startOpenFOAM scripts.
A workaround I found to login as root inside was to edit the startOpenFOAM script and modify: Code:
docker exec -it of_v1706 /bin/bash -rcfile /opt/OpenFOAM/setImage_v1706.sh Code:
docker exec -u 0 -it of_v1706 /bin/bash -rcfile /opt/OpenFOAM/setImage_v1706.sh |
|
Tags |
docker ubuntu centos |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
[OpenFOAM.com] Accessing the root account via Docker | garumple | OpenFOAM Installation | 7 | October 9, 2021 06:22 |
[OpenFOAM.com] v1712 with Docker on Ubuntu 17.10. Use same docker in Windows 10? | amh@inventas.no | OpenFOAM Installation | 0 | January 30, 2018 09:59 |
[OpenFOAM.org] How to get OpenFoam compiled on a cluster with CentOS 6.5 and no root permissions | hulli | OpenFOAM Installation | 2 | November 6, 2014 19:01 |
Environment errors with .deb install and ubuntu 13.04 64 bit | jonathanbyrn | OpenFOAM Installation | 14 | September 26, 2013 06:22 |