|
[Sponsors] |
[OpenFOAM.org] Update OpenFoam on macOS using Docker |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 25, 2019, 12:28 |
Update OpenFoam on macOS using Docker
|
#1 |
New Member
Babak
Join Date: May 2018
Posts: 2
Rep Power: 0 |
Hi,
How can I update the OpenFoam installed on Docker in MacOS? the Code:
apt-get update |
|
July 9, 2019, 20:08 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
July 10, 2019, 21:26 |
|
#3 |
New Member
Babak
Join Date: May 2018
Posts: 2
Rep Power: 0 |
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 Code:
docker image ls Code:
apt-get update apt-get upgrade Code:
apt-get --only-upgrade install openfoam6 Hope this would be helpful. The following link is useful: https://blog.koley.in/2018/root-user...cker-container |
|
Tags |
docker, mac os, mac os x, openfoam 6 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
OpenFoam in docker (gcc 6) vs. OpenFoam natively compiled (gcc 8.1.1) | Anouk | OpenFOAM Running, Solving & CFD | 0 | September 17, 2018 09:02 |
OpenFOAM 5.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 11 | June 6, 2018 00:48 |
[Other] Installation of OpenFOAM: Docker or not Docker? | zt49 | OpenFOAM Installation | 2 | December 22, 2016 11:38 |
apt-get update Duplicate lists of OpenFOAM | Xulia | OpenFOAM Installation | 2 | June 20, 2013 11:13 |