Re: getting rid of every trace of docker from fedora 29 for re-install?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/25/19 9:28 AM, M A Young wrote:
> On Thu, 24 Jan 2019, Jon LaBadie wrote:
>
>> On Thu, Jan 24, 2019 at 06:46:23AM -0500, Robert P. J. Day wrote:
>>>   as part of an intro tutorial i'm writing, i want to provide a recipe
>>> for installing docker-ce on fedora 29 from absolute scratch, and part
>>> of that will involve how to first get rid of every trace of any old
>>> docker- or container-related stuff.
>>>
>>>   if one has no interest in preserving old containers, i'm proposing
>>> running (as sudo, naturally):
>>>
>>>   $ dnf remove "*docker*"
>>>   $ rm -rf /var/lib/{containerd,docker,docker-engine}
>>>
>>> i'm fairly sure that's overkill, but the point is to simulate truly
>>> starting from scratch. the above *seems* to work, is there any reason
>>> it would cause problems before i kick in with installing the proper
>>> yum repo file and running:
>>>
>>>   $ dnf install docker-ce
>>>
>>>   thoughts?
>> After running your "dnf remove" and "rm -rf" commands
>> run "# locate docker".  There may be config files
>> left behind or other cruft in home dirs.
> If the computer has LVM partions it is probably worth checking that the 
> docker-pool thin pool has been deleted, as docker can use this if there is 
> space in LVM, and I don't know if uninstalling docker is enough to remove 
> it.
>
> 	Michael Young
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx

atomic storage reset

I believe does the right thing.  It should cleanup devicemapper as well. 


BTW Could you article also explain how to use podman in place of docker
on Fedora 29. 

You could expand it to, how to convert an installed docker to a podman
configuration.

Something like

for image in $(docker image -q); do

           podman pull image docker-daemon:$image

          dockre rmi --force $image

done

atomic storage reset

rpm -e docker\*

dnf install podman-docker

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux