{"id":7265,"date":"2018-03-14T10:59:35","date_gmt":"2018-03-14T02:59:35","guid":{"rendered":"http:\/\/rmohan.com\/?p=7265"},"modified":"2018-03-14T11:00:16","modified_gmt":"2018-03-14T03:00:16","slug":"docker-install-on-centos-7-4","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7265","title":{"rendered":"docker install on centos 7.4"},"content":{"rendered":"<p>hostnamectl set-hostname clusterserver1.rmohan.com<br \/>\nifconfig -a<br \/>\nvi \/etc\/selinux\/config<br \/>\nsystemctl disable firewalld<br \/>\nsystemctl stop firewalld<br \/>\nvi \/etc\/hosts<br \/>\nyum install wget<br \/>\nyum update<br \/>\nyum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine<br \/>\nyum install -y yum-utils device-mapper-persistent-data lvm2<br \/>\nyum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<br \/>\nyum-config-manager &#8211;enable docker-ce-edge<br \/>\nyum list docker-ce &#8211;showduplicates | sort -r<br \/>\nyum install docker-ce<\/p>\n<p>systemctl enable docker<\/p>\n<p>systemctl start docker<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"uninstall-docker-ce\">Uninstall Docker CE<\/h2>\n<ol>\n<li>Uninstall the Docker package:\n<div class=\"language-bash highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code><span class=\"nv\">$<\/span>yum remove docker-ce\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/li>\n<li>Images, containers, volumes, or customized configuration files on your host are not automatically removed. To delete all images, containers, and volumes:\n<div class=\"language-bash highlighter-rouge\">\n<div class=\"highlight\">\n<pre class=\"highlight\"><code><span class=\"nv\">$ <\/span>rm <span class=\"nt\">-rf<\/span> \/var\/lib\/docker<\/code><\/pre>\n<\/div>\n<\/div>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>hostnamectl set-hostname clusterserver1.rmohan.com ifconfig -a vi \/etc\/selinux\/config systemctl disable firewalld systemctl stop firewalld vi \/etc\/hosts yum install wget yum update yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine yum install -y yum-utils device-mapper-persistent-data lvm2 yum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo yum-config-manager &#8211;enable docker-ce-edge yum list docker-ce &#8211;showduplicates | sort -r yum install docker-ce<\/p>\n<p>systemctl [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7265"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7265"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7265\/revisions"}],"predecessor-version":[{"id":7267,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7265\/revisions\/7267"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}