CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] root in openfoam docker

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By rcastilla
  • 4 Post By MakisH

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2016, 14:18
Default root in openfoam docker
  #1
New Member
 
jeremy rutman
Join Date: Feb 2016
Posts: 1
Rep Power: 0
jeremy rutman is on a distinguished road
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.
jeremy rutman is offline   Reply With Quote

Old   February 22, 2016, 09:45
Default
  #2
Senior Member
 
Robert Castilla
Join Date: Apr 2009
Location: Spain
Posts: 109
Rep Power: 17
rcastilla is on a distinguished road
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
pgh likes this.
rcastilla is offline   Reply With Quote

Old   April 5, 2016, 07:50
Default
  #3
New Member
 
shangyan
Join Date: Oct 2015
Posts: 6
Rep Power: 10
shangyan is on a distinguished road
Quote:
Originally Posted by jeremy rutman View Post
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.
Hi,jeremy rutman
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.
shangyan is offline   Reply With Quote

Old   October 24, 2017, 07:31
Default
  #4
New Member
 
Join Date: May 2016
Posts: 28
Rep Power: 9
MakisH is on a distinguished road
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
to this (i.e. add the "-u 0"):

Code:
docker exec -u 0 -it of_v1706 /bin/bash -rcfile /opt/OpenFOAM/setImage_v1706.sh
I then ran the startOpenFOAM script as my normal user and I was logged in as root.
kiski, arvindpj, Swift and 1 others like this.
MakisH is offline   Reply With Quote

Reply

Tags
docker ubuntu centos


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
[OpenFOAM.com] Accessing the root account via Docker garumple OpenFOAM Installation 7 October 9, 2021 05: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 08: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 18:01
Environment errors with .deb install and ubuntu 13.04 64 bit jonathanbyrn OpenFOAM Installation 14 September 26, 2013 05:22


All times are GMT -4. The time now is 18:30.