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

[OpenFOAM.org] Update OpenFoam on macOS using Docker

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By babak_n

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2019, 11:28
Default Update OpenFoam on macOS using Docker
  #1
New Member
 
Babak
Join Date: May 2018
Posts: 2
Rep Power: 0
babak_n is on a distinguished road
Hi,
How can I update the OpenFoam installed on Docker in MacOS?

the
Code:
apt-get update
doesn't work.
babak_n is offline   Reply With Quote

Old   July 9, 2019, 19:08
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: In Ubuntu and Debian, to upgrade installed Deb packages via APT, you need to do 2 commands:
Code:
apt-get update
apt-get upgrade
__________________
wyldckat is offline   Reply With Quote

Old   July 10, 2019, 20:26
Default
  #3
New Member
 
Babak
Join Date: May 2018
Posts: 2
Rep Power: 0
babak_n is on a distinguished road
At the first place, using "apt-get" does not work due to permission error on a docker image, and "sudo" is also not included by default in docker images.

I found a solution as follows:
First, It requires to load the docker image via the "root" user. Such that:
Code:
docker run -u 0 -it <image_name_or_id> /bin/bash
you can find the OpenFoam <image_name_or_id> via the command:
Code:
docker image ls
After entering the image as the root, you can use
Code:
apt-get update
apt-get upgrade
to update the packages. I prefer to use
Code:
apt-get --only-upgrade install openfoam6
instead of updating all packages.

Hope this would be helpful.

The following link is useful:
https://blog.koley.in/2018/root-user...cker-container
wyldckat likes this.
babak_n is offline   Reply With Quote

Reply

Tags
docker, mac os, mac os x, openfoam 6


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
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
OpenFoam in docker (gcc 6) vs. OpenFoam natively compiled (gcc 8.1.1) Anouk OpenFOAM Running, Solving & CFD 0 September 17, 2018 08:02
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 5, 2018 23:48
[Other] Installation of OpenFOAM: Docker or not Docker? zt49 OpenFOAM Installation 2 December 22, 2016 10:38
apt-get update Duplicate lists of OpenFOAM Xulia OpenFOAM Installation 2 June 20, 2013 10:13


All times are GMT -4. The time now is 00:28.