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

[OpenFOAM.com] A simple question: how to uninstall OpenFOAM v1712?

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 7 Post By wyldckat
  • 2 Post By kaifu
  • 1 Post By hectorgabriel85

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2018, 06:14
Default A simple question: how to uninstall OpenFOAM v1712?
  #1
Member
 
Kai
Join Date: May 2010
Location: Shanghai
Posts: 61
Blog Entries: 1
Rep Power: 16
kaifu is on a distinguished road
Hi,
I am so confused that I dont know how to remove the version v1712 from my ubuntu systerm. Since I have already installed the other OF version 5.0. Thus this v1712 is not necessary any more. It is wired that I cannot find the instruction to uninstall this version from website. And also I cannot where does the docker image locate. Anyone could help...
__________________
Kai
kaifu is offline   Reply With Quote

Old   October 24, 2018, 18:42
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 questions:
  1. Which installation instructions did you follow for OpenFOAM v1712?
  2. Which Ubuntu version are you using?
__________________
wyldckat is offline   Reply With Quote

Old   October 27, 2018, 23:56
Default
  #3
Member
 
Kai
Join Date: May 2010
Location: Shanghai
Posts: 61
Blog Entries: 1
Rep Power: 16
kaifu is on a distinguished road
Hi Bruno,

I am using Ubuntu 16.04 LTS, and basically followed the instruction of Pre-compiled binary installation for Linux systems, as the link
https://openfoam.com/download/install-binary-linux.php

I cannot find more information where the image locates on my harddrive after the installation...
__________________
Kai
kaifu is offline   Reply With Quote

Old   October 28, 2018, 05:46
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Hi Kai,

OK, I did this myself yesterday, when I needed to re-download the image for v1806.

The steps should be something like this:
  1. First, we need to check if there are still any containers up and running the image. You can see them by running this command:
    Code:
    docker ps
  2. It might show something like this:
    Code:
    CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS               NAMES
    e4ee1c2f2678        openfoamplus/of_v1806_centos73   "/bin/bash --rcfile …"   17 hours ago        Up 12 seconds                           of_v1806
    1. If it does, then we need to shutdown this container, which we can by running:
      Code:
      docker stop of_v1806
    2. You can check if it's stopped by running again:
      Code:
      docker ps
    3. If it did not stop, then you can try and kill it:
      Code:
      docker kill of_v1806
  3. Now that the container is stopped, we need to find the image that we want to remove, which we can do by running this command:
    Code:
    docker images
  4. The list might look something like this:
    Code:
    REPOSITORY                           TAG                 IMAGE ID            CREATED             SIZE
    openfoam/openfoam6-paraview54        latest              f45155bafc64        2 months ago        2.35GB
    openfoam/openfoam-dev-paraview54     latest              2533133fbba0        2 months ago        2.33GB
    openfoamplus/of_v1806_centos73       latest              256f35c266e8        3 months ago        2.21GB
    openfoam/openfoam5-paraview54        latest              1e5f2578a86a        15 months ago       2.13GB
    openfoam/openfoam4-paraview50        latest              e644ef04fd37        21 months ago       2.25GB
    ubuntu                               16.04               104bec311bcd        22 months ago       129MB
    openfoamplus/of_v1606plus_centos66   latest              19ebf385cb00        2 years ago         2.3GB
    ubuntu                               14.04.4             e17b56e5200a        2 years ago         188MB
    openfoamplus/of_v30plus_rhel66       latest              629df6cbb9ef        2 years ago         1.87GB
  5. It might be hard to spot, but for my example, the relevant image is this one:
    Code:
    openfoamplus/of_v1806_centos73       latest              256f35c266e8        3 months ago        2.21GB
  6. So what we do now is run the following command to remove this image:
    Code:
    docker rmi openfoamplus/of_v1806_centos73
  7. For me, it complained as follows:
    Code:
    Error response from daemon: conflict: unable to remove repository reference "openfoamplus/of_v1806_centos73" (must force) - container e4ee1c2f2678 is using its referenced image 256f35c266e8
  8. This means that we need to first remove the container and only then we can remove the image. So the container in this example is "e4ee1c2f2678", which we can remove with this command:
    Code:
    docker rm e4ee1c2f2678
  9. Now we can try again to remove the image:
    Code:
    docker rmi openfoamplus/of_v1806_centos73
  10. For me, it gave me this:
    Code:
    Untagged: openfoamplus/of_v1806_centos73:latest
    Untagged: openfoamplus/of_v1806_centos73@sha256:404c3b26cb75e1e1c43cfced67f291c6377fc7386c83381c636eb8c212a43bb7
    Deleted: sha256:256f35c266e891c4333619a6947fab10e51953063cadc2d65f7ccc512edf93d6
    Deleted: sha256:74868bd07ea457a700e2586d33da87e286ca1a43b2a5ecd6ed479327f2dddabd
  11. So if all went well, the following command should no longer list the image that we removed:
    Code:
    docker images
Please let me know if these steps worked for you, so that I can add it to the respective FAQ section at openfoamwiki.net.


Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 14, 2018, 03:43
Default
  #5
Member
 
Kai
Join Date: May 2010
Location: Shanghai
Posts: 61
Blog Entries: 1
Rep Power: 16
kaifu is on a distinguished road
Hi, Bruno
Thanks for you help and sorry for my late reply.
I followed your instructions
Code:
docker ps
and got the message,
Code:
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
which means that i have no running containers.
and after the input
Code:
docker images
got the following message
Code:
REPOSITORY                       TAG                 IMAGE ID            CREATED             SIZE
hello-world                      latest              e38bc07ac18e        7 months ago        1.85kB
openfoamplus/of_v1712_centos73   latest              154c4f7b973d        10 months ago       2.05GB
and Id like to remove all of them by
Code:
docker rmi openfoamplus/of_v1712_centos73
and got message which is not surprising
Code:
Error response from daemon: conflict: unable to remove repository reference "openfoamplus/of_v1712_centos73" (must force) - container 3f8217206f3f is using its referenced image 154c4f7b973d
and continue to input
Code:
docker rm 3f8217206f3f
and after that redo
Code:
docker rmi openfoamplus/of_v1712_centos73
again. And got the message
Code:
Untagged: openfoamplus/of_v1712_centos73:latest
Untagged: openfoamplus/of_v1712_centos73@sha256:e5860ca5cb90c258f39adc5201a2792c6a6373eaaa44cda71f44df0c41717c6b
Deleted: sha256:154c4f7b973d2dc48690380074831f60d092109ba696af8ddbab461c66181690
Deleted: sha256:825423be4d836fd59b588d9007533aeb866af495c805ef7d8fa4395e7faa5f2e
Deleted: sha256:4f729d462a42e6aeb439a0ecafcfe6f02a7fec005b456b7a65f83a6631558133
Done
wyldckat and Daniel_Khazaei like this.
__________________
Kai
kaifu is offline   Reply With Quote

Old   January 4, 2019, 08:33
Default
  #6
Member
 
Hector
Join Date: Jul 2010
Location: Barcelona
Posts: 30
Rep Power: 16
hectorgabriel85 is on a distinguished road
Hello wyldckat:


In Fedora 28 (F28) the unistallation steps of openfoam v1806 worked with a slight modification
docker stop of_v1806
docker kill of_v1806
docker rm of_v1806
docker rmi docker.io/openfoamplus/of_v1806_centos73
wyldckat likes this.
hectorgabriel85 is offline   Reply With Quote

Reply


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
Simple question : Simple Vs Coupled solver Maria Angela FLUENT 5 March 6, 2020 16:38
A simple cfd and aeroelasticity question i.sabahi Main CFD Forum 4 June 17, 2018 07:24
Time boundary condition OpenFOAM v1712 Ricardo1992 OpenFOAM 0 May 15, 2018 07:33
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50


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