<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Containers Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/containers/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 28 Feb 2020 15:42:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Podman on OpenSUSE 15.1?</title>
		<link>https://www.osradar.com/how-to-install-podman-opensuse-15-1/</link>
					<comments>https://www.osradar.com/how-to-install-podman-opensuse-15-1/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 03 Mar 2020 23:44:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Containers]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[Opensuse 15.1]]></category>
		<category><![CDATA[podman]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Virtualization]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18732</guid>

					<description><![CDATA[<p>Docker is a technology widely used today because it solves problems that arise with virtual machines. It is quite used and relatively simple to use. However, a possible substitute appears to be a serious competitor to Docker. Therefore, in this post, we will show you how to install Podman on OpenSUSE 15.1 What is Podman? [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-podman-opensuse-15-1/">How to install Podman on OpenSUSE 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Docker is a technology widely used today because it solves problems that arise with virtual machines. It is quite used and relatively simple to use. However, a possible substitute appears to be a serious competitor to Docker. Therefore, in this post, <strong>we will show you how to install Podman on OpenSUSE 15.1 </strong></p>



<h2>What is Podman?</h2>



<p><a href="https://www.osradar.com/tag/docker" target="_blank" rel="noreferrer noopener" aria-label="Docker (opens in a new tab)">Docker</a> bases all its operation on a process (daemon) that manages the containers. This process is getting bigger and bigger over time and this can be a problem. So Podman uses the fork/exec model that allows it to run using a smaller amount of resources.</p>



<p>The main driver of the project is Red Hat that has seen how in this distribution and the derivatives like <a href="https://www.osradar.com/tag/centos" target="_blank" rel="noreferrer noopener" aria-label="CentOS (opens in a new tab)">CentOS</a> have been replaced Docker with Podman. However, the images and many commands are compatible which reduces the learning curve.</p>



<p>One of the main differences is the path where Podman saves the images.</p>



<p>So in short, <a rel="noreferrer noopener" aria-label="Podman (opens in a new tab)" href="https://podman.io" target="_blank">Podman</a> is a container integration engine. It allows you to manage them in much the same way as Docker. So it&#8217;s a simple transition.</p>



<h2>Installing Podman on OpenSUSE 15.1</h2>



<p>Podman has strong documentation where they explain, among other things, how to install it from the source code. However, let&#8217;s do a search within the official OpenSUSE repositories to see.</p>



<p>So, open a terminal session or connect to your server using SSH.</p>



<pre class="wp-block-preformatted">:~$ sudo zypper search podman
Loading repository data…
 Reading installed packages…
 S | Name              | Summary                                                               | Type   
 --+-------------------+-----------------------------------------------------------------------+--------
   | podman            | Daemon-less container engine for managing containers, pods and images | package
   | podman-cni-config | Basic CNI configuration for podman                                    | packageLoading repository data…
 Reading installed packages…
 S | Name              | Summary                                                               | Type   
 --+-------------------+-----------------------------------------------------------------------+--------
   | podman            | Daemon-less container engine for managing containers, pods and images | package
   | podman-cni-config | Basic CNI configuration for podman                                    | package</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="189" src="https://www.osradar.com/wp-content/uploads/2020/02/1-22-1024x189.png" alt="1.- Searching for Podman on OpenSUSE 15.1" class="wp-image-18734" srcset="https://www.osradar.com/wp-content/uploads/2020/02/1-22-1024x189.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/1-22-300x55.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/1-22-768x141.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/1-22-696x128.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/1-22.png 1032w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- Searching for Podman on OpenSUSE 15.1</figcaption></figure>



<p>As we can see in the image and in the standard output, Podman is in the official OpenSUSE 15.1 repositories, so it is best to install it from there as there are no external pre-compiled binaries.</p>



<p>To do this, just use the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo zypper in podman
Loading repository data…
 Reading installed packages…
 Resolving package dependencies…
 The following 16 NEW packages are going to be installed:
   catatonit cni cni-plugins criu libcontainers-common libnet9 libostree-1-1 libprotobuf-c1 libpython2_7-1_0 podman podman-cni-config python2-ipaddr python2-protobuf
   python-base runc slirp4netns
 The following 3 recommended packages were automatically selected:
   cni-plugins criu podman-cni-config
 16 new packages to install.
 Overall download size: 36,1 MiB. Already cached: 0 B. After the operation, additional 138,7 MiB will be used.
 Continue? y/n/v/…? shows all options:</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="215" src="https://www.osradar.com/wp-content/uploads/2020/02/2-21-1024x215.png" alt="2.- Install Podman on OpenSUSE 15.1" class="wp-image-18735" srcset="https://www.osradar.com/wp-content/uploads/2020/02/2-21-1024x215.png 1024w, https://www.osradar.com/wp-content/uploads/2020/02/2-21-300x63.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/2-21-768x161.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/2-21-696x146.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/2-21-1068x224.png 1068w, https://www.osradar.com/wp-content/uploads/2020/02/2-21.png 1361w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Install Podman on OpenSUSE 15.1</figcaption></figure>



<p>At the end of the installation, Podman will be ready for work.</p>



<h2>Testing Podman on OpenSUSE 15.1</h2>



<p>The installation has been completed but we are going to test the operation.</p>



<p>To do so, I will download the image of Alpine. It is light and simple and will help us to test the operation of Podman.</p>



<pre class="wp-block-preformatted">:~$ sudo podman pull alpine
Trying to pull docker.io/alpine:latest…Getting image source signatures
 Copying blob c9b1b535fdd9: 2.67 MiB / 2.67 MiB [============================] 8s
 Copying config e7d92cdc71fe: 1.48 KiB / 1.48 KiB [==========================] 0s
 Writing manifest to image destination
 Storing signatures
 e7d92cdc71feacf90708cb59182d0df1b911f8ae022d29e8e95d75ca6a99776a</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="817" height="189" src="https://www.osradar.com/wp-content/uploads/2020/02/3-18.png" alt="3.- Testing the Podman installation" class="wp-image-18737" srcset="https://www.osradar.com/wp-content/uploads/2020/02/3-18.png 817w, https://www.osradar.com/wp-content/uploads/2020/02/3-18-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/3-18-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/3-18-696x161.png 696w" sizes="(max-width: 817px) 100vw, 817px" /><figcaption>3.- Testing the Podman installation</figcaption></figure>



<p>To check all the images that are downloaded to the system, execute the following command:</p>



<pre class="wp-block-preformatted">:~$ sudo podman images 
REPOSITORY                 TAG      IMAGE ID       CREATED       SIZE
 docker.io/library/alpine   latest   e7d92cdc71fe   5 weeks ago   5.86 MB</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="702" height="152" src="https://www.osradar.com/wp-content/uploads/2020/02/4-18.png" alt="4.- Downloaded images" class="wp-image-18739" srcset="https://www.osradar.com/wp-content/uploads/2020/02/4-18.png 702w, https://www.osradar.com/wp-content/uploads/2020/02/4-18-300x65.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/4-18-696x152.png 696w" sizes="(max-width: 702px) 100vw, 702px" /><figcaption>4.- Downloaded images</figcaption></figure>



<p>And finally, run Alpine&#8217;s image.   Once inside the image, run a command to prove we&#8217;re at Alpine:</p>



<pre class="wp-block-preformatted">:~$ sudo podman run -it --rm docker.io/library/alpine /bin/sh
/ # cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.11.3
PRETTY_NAME="Alpine Linux v3.11"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
/ #</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="778" height="210" src="https://www.osradar.com/wp-content/uploads/2020/02/5-16.png" alt="5.- Podman working on OpenSUSE 15.1" class="wp-image-18740" srcset="https://www.osradar.com/wp-content/uploads/2020/02/5-16.png 778w, https://www.osradar.com/wp-content/uploads/2020/02/5-16-300x81.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/5-16-768x207.png 768w, https://www.osradar.com/wp-content/uploads/2020/02/5-16-696x188.png 696w" sizes="(max-width: 778px) 100vw, 778px" /><figcaption>5.- Podman working on OpenSUSE 15.1</figcaption></figure>



<p>So, Podman is ready for the job.</p>



<h2>Conclusion</h2>



<p>Podman emerges as an alternative to Docker. As I always say, the competition only benefits the user and if Podman improves on the already excellent one made by Docker then it is welcome. So we&#8217;ll keep track of the project and now you know how to install it in OpenSUSE 15.1</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channel (opens in a new tab)">our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-podman-opensuse-15-1/">How to install Podman on OpenSUSE 15.1?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-podman-opensuse-15-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Kubernetes on CentOS 7?</title>
		<link>https://www.osradar.com/install-kubernetes-centos-7/</link>
					<comments>https://www.osradar.com/install-kubernetes-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 17 Oct 2018 01:00:03 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Containers]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Kubernetes]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=6395</guid>

					<description><![CDATA[<p>Kubernetes (k8s) is a technology for the orchestration of Docker containers. If you&#8217;ve heard of or used Docker, you probably also know about Kubernetes. In this tutorial, I will show you how to install Kubernetes on CentOS 7. In short, Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. The most [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-kubernetes-centos-7/">How to install Kubernetes on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Kubernetes (k8s) is a technology for the orchestration of Docker containers. If you&#8217;ve heard of or used Docker, you probably also know about Kubernetes. In this tutorial, I will show you how to install Kubernetes on CentOS 7.</p>
<p>In short, <a href="https://kubernetes.io/" rel="noopener">Kubernetes</a> is an open-source system for automating deployment, scaling, and management of containerized applications. The most important factor that sets Kubernetes apart from other cloud computing solutions is that it was built to work with Docker. That&#8217;s why it&#8217;s the most used tool to deploy Dockers applications.</p>
<p>Now, I will show you how to install it on CentOS 7.</p>
<h2>0. Prerequisites</h2>
<p>The installation is not as complicated as it seems, however, you should have a little knowledge about Terminal and commands. Also required is a computer that will serve as a server and another that will serve as a node. The central idea is to add them in a cluster.</p>
<p>Both computers run CentOS 7 and it&#8217;s on a local network. Let&#8217;s start.</p>
<h2>1. Install Kubernetes on the server</h2>
<p>As I said before the idea is to make a cluster, for it, first we must configure the server where you will run Kubernetes. First, you have to disable SELinux and apply various rules in the Firewall for everything to work well. Note: all commands must be run as root user.</p>
<pre class="">:~# hostnamectl set-hostname osradar
:~# exec bash
:~# setenforce 0
:~# sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux</pre>
<p><figure id="attachment_6473" aria-describedby="caption-attachment-6473" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-6473 size-full" src="https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867.png" alt="1.- Preparing the enviroment" width="1366" height="713" srcset="https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867-300x157.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867-768x401.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867-1024x534.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867-696x363.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867-1068x557.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/1-12-e1539634898867-805x420.png 805w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6473" class="wp-caption-text">1.- Preparing the environment</figcaption></figure></p>
<p>Next, set the firewall rules:</p>
<pre class="">:~# firewall-cmd --permanent --add-port=6443/tcp
:~# firewall-cmd --permanent --add-port=2379-2380/tcp
:~# firewall-cmd --permanent --add-port=10250/tcp
:~# firewall-cmd --permanent --add-port=10251/tcp
:~# firewall-cmd --permanent --add-port=10252/tcp
:~# firewall-cmd --permanent --add-port=10255/tcp
:~# firewall-cmd --reload
:~# modprobe br_netfilter
:~# echo '1' &gt; /proc/sys/net/bridge/bridge-nf-call-iptables</pre>
<p><figure id="attachment_6476" aria-describedby="caption-attachment-6476" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6476" src="https://www.osradar.com/wp-content/uploads/2018/10/4-9.png" alt="2.- Setting Firewall rules" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/4-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/4-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/4-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/4-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/4-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/4-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/4-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6476" class="wp-caption-text">2.- Setting Firewall rules</figcaption></figure></p>
<p>In case you don&#8217;t have a DNS server configured. Edit the file <code>/etc/hosts</code> and add the information of your node and server.</p>
<pre class="">:~# nano /etc/hosts</pre>
<p>And add the following:</p>
<pre class="">192.168.1.8 osradar
192.168.1.9 node1
</pre>
<p><figure id="attachment_6474" aria-describedby="caption-attachment-6474" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6474" src="https://www.osradar.com/wp-content/uploads/2018/10/2-12.png" alt="2.- Editing hosts file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/2-12.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/2-12-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/2-12-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/2-12-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/2-12-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/2-12-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/2-12-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6474" class="wp-caption-text">3.- Editing hosts file</figcaption></figure></p>
<p>Of course, replace the configuration with yours depending on the IP addresses and hostname chosen.</p>
<h2>2. Install Kubernetes</h2>
<p>In order to install Kubernetes on CentOS 7, you must add its repository. With this, the installation will be quick and easy. Run</p>
<pre class="">:~# nano /etc/yum.repos.d/kubernetes.repo</pre>
<p>And put the following:</p>
<pre class="">[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg</pre>
<p><figure id="attachment_6477" aria-describedby="caption-attachment-6477" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6477" src="https://www.osradar.com/wp-content/uploads/2018/10/3-13.png" alt="4.- Adding the Kubernetes repository" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/3-13.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/3-13-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/3-13-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/3-13-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/3-13-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/3-13-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/3-13-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6477" class="wp-caption-text">4.- Adding the Kubernetes repository</figcaption></figure></p>
<p>Then, you can install it. Also, you have to install docker:</p>
<pre class="">:~# yum install kubeadm docker</pre>
<p><figure id="attachment_6478" aria-describedby="caption-attachment-6478" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6478" src="https://www.osradar.com/wp-content/uploads/2018/10/5-9.png" alt="5.- Install Kubernetes" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/5-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/5-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/5-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/5-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/5-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/5-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/5-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6478" class="wp-caption-text">5.- Install Kubernetes</figcaption></figure></p>
<p>Then, start and enable both <code>docker</code> and <code>kubectl</code> services:</p>
<pre class="">:~# systemctl enable docker
:~# systemctl start docker
:~# systemctl enable kubelet
:~# systemctl start kubelet</pre>
<p><figure id="attachment_6479" aria-describedby="caption-attachment-6479" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6479" src="https://www.osradar.com/wp-content/uploads/2018/10/6-8.png" alt="6.- Enabling the required services" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/6-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/6-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/6-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/6-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/6-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/6-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/6-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6479" class="wp-caption-text">6.- Enabling the required services</figcaption></figure></p>
<h2>3. Initialize Kubernetes in CentOS 7</h2>
<p>Now you can start Kubernetes with the next command:</p>
<pre class="">.~# kubeadm init</pre>
<p>If you see something like this, everything is OK.</p>
<p><figure id="attachment_6480" aria-describedby="caption-attachment-6480" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6480" src="https://www.osradar.com/wp-content/uploads/2018/10/7-8.png" alt="7.- Kubernetes is running!" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/7-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/7-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/7-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/7-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/7-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/7-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/7-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6480" class="wp-caption-text">7.- Kubernetes is running!</figcaption></figure></p>
<p>As you can see from the image, you must now execute these commands:</p>
<pre class="">:~# mkdir -p $HOME/.kube
:~# cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
:~# chown $(id -u):$(id -g) $HOME/.kube/config</pre>
<p><figure id="attachment_6481" aria-describedby="caption-attachment-6481" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-6481 size-full" src="https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965.png" alt="8.- Creating the cluster folders" width="1366" height="741" srcset="https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965-300x163.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965-768x417.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965-1024x555.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965-696x378.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965-1068x579.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/8-8-e1539648131965-774x420.png 774w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6481" class="wp-caption-text">8.- Creating the cluster folders</figcaption></figure></p>
<p>The next step is to check the status of the clusters and pods</p>
<pre class="">:~# kubectl get nodes
:~# kubectl get pods --all-namespaces</pre>
<p>To ensure that there is communication between the nodes of the cluster, you have to run the following:</p>
<pre class="">:~# export kubever=$(kubectl version | base64 | tr -d '\n')
:~# kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$kubever"</pre>
<p><figure id="attachment_6482" aria-describedby="caption-attachment-6482" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6482" src="https://www.osradar.com/wp-content/uploads/2018/10/9-9.png" alt="9.- Configuring Kubernetes" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/9-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/9-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/9-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/9-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/9-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/9-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/9-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6482" class="wp-caption-text">9.- Configuring Kubernetes</figcaption></figure></p>
<p>Now, re-run the command to show all the pods.</p>
<pre class="">:~# kubectl get pods --all-namespaces</pre>
<p><figure id="attachment_6483" aria-describedby="caption-attachment-6483" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6483" src="https://www.osradar.com/wp-content/uploads/2018/10/10-8.png" alt="10.- All pods running" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/10-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/10-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/10-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/10-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/10-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/10-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/10-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6483" class="wp-caption-text">10.- All pods running</figcaption></figure></p>
<p>Everything is going OK.</p>
<h2>4.- Working on the node or nodes</h2>
<p>In this step, you must work on the number of nodes you want to configure. In this case, it will be only one, but remember that they can be more.</p>
<p>At each node, run the following. First, change the hostname and set the firewall rules:</p>
<pre class="">:~# setenforce 0
:~# sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
:~# firewall-cmd --permanent --add-port=10250/tcp
:~# firewall-cmd --permanent --add-port=10255/tcp
:~# firewall-cmd --permanent --add-port=30000-32767/tcp
:~# firewall-cmd --permanent --add-port=6783/tcp
:~# firewall-cmd  --reload</pre>
<p><figure id="attachment_6484" aria-describedby="caption-attachment-6484" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6484" src="https://www.osradar.com/wp-content/uploads/2018/10/11-8.png" alt="11.- Setting Firewall rules on Node1" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/11-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/11-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/11-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/11-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/11-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/11-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/11-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6484" class="wp-caption-text">11.- Setting Firewall rules on Node1</figcaption></figure></p>
<p>Next, install Kubernetes.</p>
<pre class="">:~# cat &lt;&lt;EOF &gt; /etc/yum.repos.d/kubernetes.repo</pre>
<p>And add the following:</p>
<pre class="">&gt; [kubernetes]
&gt; name=Kubernetes
&gt; baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
&gt; enabled=1
&gt; gpgcheck=1
&gt; repo_gpgcheck=1
&gt; gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
&gt;         https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
&gt; EOF</pre>
<p><figure id="attachment_6485" aria-describedby="caption-attachment-6485" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6485" src="https://www.osradar.com/wp-content/uploads/2018/10/12-7.png" alt="12.- adding the kubernetes repository" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/12-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/12-7-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/12-7-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/12-7-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/12-7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/12-7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/12-7-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6485" class="wp-caption-text">12.- adding the kubernetes repository</figcaption></figure></p>
<p>Next, install it:</p>
<pre class="">:~# yum install kubeadm docker</pre>
<p><figure id="attachment_6486" aria-describedby="caption-attachment-6486" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6486" src="https://www.osradar.com/wp-content/uploads/2018/10/13-3.png" alt="13.- Installing Docker and kubernetes on Node1" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/13-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/13-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/13-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/13-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/13-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/13-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/13-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6486" class="wp-caption-text">13.- Installing Docker and kubernetes on Node1</figcaption></figure></p>
<p>Then, enable and start the services:</p>
<pre class="">:~# systemctl enable docker
:~# systemctl start docker
:~# systemctl enable kubelet
:~# systemctl start kubelet</pre>
<p><figure id="attachment_6487" aria-describedby="caption-attachment-6487" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-6487" src="https://www.osradar.com/wp-content/uploads/2018/10/14-2.png" alt="14.- Enabling the required services" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/10/14-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/10/14-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/10/14-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/10/14-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/10/14-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/10/14-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/10/14-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-6487" class="wp-caption-text">14.- Enabling the required services</figcaption></figure></p>
<p>Finally, join to the master node.</p>
<pre class="">:~# kubeadm join --token xnxlx4.k6qupcvb9g7tq2ti 192.168.1.8</pre>
<h2>Conclusion</h2>
<p>As you can see, the process of installing Kubernetes on CentOS 7 is simple and we are talking about a very powerful tool in the Linux world.</p>
<p>We want to know about you, have you used Kubernetes? do you use Docker?</p>
<p>Please spread this article on your social networks</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-kubernetes-centos-7/">How to install Kubernetes on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-kubernetes-centos-7/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Docker CE on CentOS 7?</title>
		<link>https://www.osradar.com/how-to-install-docker-ce-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-docker-ce-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 09 Jul 2018 13:38:02 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Containers]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=4552</guid>

					<description><![CDATA[<p>Probably if you are one of those who recounts the internet and the world of applications and servers, you have probably heard or read about Docker. Docker is an open source project that automates the deployment of applications within software containers, providing an additional layer of Virtualization abstraction and automation at the operating system level [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/">How to install Docker CE on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Probably if you are one of those who recounts the internet and the world of applications and servers, you have probably heard or read about Docker.</p>
<p><a href="https://www.docker.com/"><strong>Docker</strong></a> is an open source project that automates the deployment of applications within software containers, providing an additional layer of Virtualization abstraction and automation at the operating system level in Linux. The work of system administrators is made easier because the software is implemented in the same way it was tested.</p>
<h2><strong>Containers vs. Virtual Machines</strong></h2>
<p>When we read the concept of containers, it is highly probable that we relate it to that of virtual machines, however, they are different things.</p>
<p>Docker container<strong>s share resources with the operating system on which they run</strong>. While virtual machines isolate themselves from the host system and communicate with Hypervisor.</p>
<p>But the most relevant difference between these two concepts is that <strong>virtual machines focus on the virtualization</strong> of the operating system and the containers in the Application and their portability.</p>
<p>These containers have some main characteristics:</p>
<ul>
<li>The container can be extended on any system that supports the technology</li>
<li>It&#8217;s light. It takes up far less space than any other virtualization system</li>
<li>Containers running on the same machine share the same Operating System</li>
</ul>
<h2><strong>Installing Docker CE on CentOS 7</strong></h2>
<h3><strong>Adding the official Docker repository</strong></h3>
<p>There are several versions of docker, such as the enterprise version aimed specifically at companies. And another version that is communal focused to the tests and to enthusiasts who want to know the technology</p>
<p>Docker&#8217;s official documentation indicates <strong>that there are 3 ways to install it</strong> on our Server with CentOS 7. The first one is downloading the packages and then installing them manually; the second one is through automated scripts that download and install Docker automatically; the third one is adding the stable repository and installing it with Yum from the terminal, <strong>this is the way it will be installed</strong>.</p>
<p>First we must update the system to get the latest version of the necessary packages. With root user privileges, we proceed to execute:</p>
<p><strong>            yum update</strong></p>
<p><figure id="attachment_4553" aria-describedby="caption-attachment-4553" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4553" src="https://www.osradar.com/wp-content/uploads/2018/06/1-22.png" alt="1.- Yum update" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/1-22.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/1-22-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/1-22-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/1-22-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/1-22-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/1-22-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/1-22-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4553" class="wp-caption-text">1.- Yum update</figcaption></figure></p>
<p>Once the system is updated, we proceed to install some packages necessary to have a smooth installation.</p>
<p><strong>              yum install yum-utils device-mapper-persistent-data lvm2</strong></p>
<p><figure id="attachment_4554" aria-describedby="caption-attachment-4554" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4554" src="https://www.osradar.com/wp-content/uploads/2018/06/2-22.png" alt="2.- Installing packages" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/2-22.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/2-22-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/2-22-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/2-22-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/2-22-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/2-22-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/2-22-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4554" class="wp-caption-text">2.- Installing packages</figcaption></figure></p>
<p>And now we can add the desired repository:</p>
<p><strong>             yum-config-manager &#8211;add-repo https://download.docker.com/linux/centos/docker-ce.repo</strong></p>
<p><figure id="attachment_4555" aria-describedby="caption-attachment-4555" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4555" src="https://www.osradar.com/wp-content/uploads/2018/06/3-24.png" alt="3.- Adding repository" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/3-24.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/3-24-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/3-24-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/3-24-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/3-24-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/3-24-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/3-24-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4555" class="wp-caption-text">3.- Adding repository</figcaption></figure></p>
<p>We check that the repository has been added with:</p>
<p><strong>             yum repolist</strong></p>
<p><figure id="attachment_4556" aria-describedby="caption-attachment-4556" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4556" src="https://www.osradar.com/wp-content/uploads/2018/06/4-21.png" alt="4.- Yum repolist" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/4-21.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/4-21-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/4-21-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/4-21-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/4-21-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/4-21-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/4-21-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4556" class="wp-caption-text">4.- Yum repolist</figcaption></figure></p>
<p>The repository was correctly added as we can see in the previous image. We can continue with the installation.</p>
<h2><strong>Docker installation<br />
</strong></h2>
<p>To install Docker, we proceed to execute the following command:</p>
<p><strong>                  yum install docker-ce</strong></p>
<p><figure id="attachment_4557" aria-describedby="caption-attachment-4557" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4557" src="https://www.osradar.com/wp-content/uploads/2018/06/5-22.png" alt="5.- Installing Docker" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/5-22.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/5-22-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/5-22-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/5-22-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/5-22-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/5-22-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/5-22-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4557" class="wp-caption-text">5.- Installing Docker</figcaption></figure></p>
<p>Now, we must start your service with the command:</p>
<p><strong>             systemctl start docker</strong></p>
<p><figure id="attachment_4558" aria-describedby="caption-attachment-4558" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4558" src="https://www.osradar.com/wp-content/uploads/2018/06/6-22.png" alt="6.- Starting docker" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/6-22.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/6-22-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/6-22-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/6-22-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/6-22-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/6-22-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/6-22-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4558" class="wp-caption-text">6.- Starting service</figcaption></figure></p>
<p>The repository was correctly added as we can see in the previous image</p>
<p>Now we can test the installation. Run the command:</p>
<p><strong>              docker run hello-world</strong></p>
<p><figure id="attachment_4559" aria-describedby="caption-attachment-4559" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4559" src="https://www.osradar.com/wp-content/uploads/2018/06/7-20.png" alt="7.- Hello world" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/7-20.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/7-20-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/7-20-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/7-20-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/7-20-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/7-20-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/7-20-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4559" class="wp-caption-text">7.- Hello world</figcaption></figure></p>
<p>We can say then, that Docker has been installed correctly.</p>
<h3><strong>Getting started</strong></h3>
<p>One of the first things we can do is to search for a container related to a distribution or an application, we can do it with the following command:</p>
<p><strong>             docker search ubuntu</strong></p>
<p>Where ubuntu is the search criteria and will show you all the ubuntu related containers that are available</p>
<p><figure id="attachment_4560" aria-describedby="caption-attachment-4560" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4560" src="https://www.osradar.com/wp-content/uploads/2018/06/8-19.png" alt="8.- Search results" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/8-19.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/8-19-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/8-19-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/8-19-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/8-19-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/8-19-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/8-19-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4560" class="wp-caption-text">8.- Search results</figcaption></figure></p>
<p>And for example, to load the debian container, we run:</p>
<p><strong>            docker pull i383/debian</strong></p>
<p><figure id="attachment_4561" aria-describedby="caption-attachment-4561" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4561" src="https://www.osradar.com/wp-content/uploads/2018/06/9-16.png" alt="9.- Loading a container" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/9-16.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/9-16-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/9-16-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/9-16-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/9-16-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/9-16-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/9-16-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4561" class="wp-caption-text">9.- Loading a container</figcaption></figure></p>
<p>Now, we checked the images we have in the system:</p>
<p><strong>            docker images</strong></p>
<p><figure id="attachment_4562" aria-describedby="caption-attachment-4562" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4562" src="https://www.osradar.com/wp-content/uploads/2018/06/10-16.png" alt="10.- Images installed" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/10-16.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/10-16-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/10-16-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/10-16-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/10-16-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/10-16-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/10-16-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4562" class="wp-caption-text">10.- Images installed</figcaption></figure></p>
<p>Next we must enter the container or image and we can do it in two ways: through the formula repository+tag; or with the image id.</p>
<p>In this case it could be:</p>
<p><strong>              docker run -i -t 6ed200f7bf1c /bin/bash</strong></p>
<p>or:</p>
<p><strong>               docker run -i -t i386/debian:lastest</strong></p>
<p><figure id="attachment_4563" aria-describedby="caption-attachment-4563" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4563" src="https://www.osradar.com/wp-content/uploads/2018/06/11-16.png" alt="11.- Inside the container" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/11-16.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/11-16-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/11-16-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/11-16-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/11-16-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/11-16-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/11-16-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4563" class="wp-caption-text">11.- Inside the container</figcaption></figure></p>
<p>And to exit we have two options: the first is to press CTRL+D but this stops the execution of the container and in many cases it is not convenient to do this; the other option is to press CTRL and without releasing press P and then Q successively.</p>
<p><figure id="attachment_4564" aria-describedby="caption-attachment-4564" style="width: 1368px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-4564" src="https://www.osradar.com/wp-content/uploads/2018/06/12-14.png" alt="12.- Leaving the container" width="1368" height="710" srcset="https://www.osradar.com/wp-content/uploads/2018/06/12-14.png 1368w, https://www.osradar.com/wp-content/uploads/2018/06/12-14-300x156.png 300w, https://www.osradar.com/wp-content/uploads/2018/06/12-14-768x399.png 768w, https://www.osradar.com/wp-content/uploads/2018/06/12-14-1024x531.png 1024w, https://www.osradar.com/wp-content/uploads/2018/06/12-14-696x361.png 696w, https://www.osradar.com/wp-content/uploads/2018/06/12-14-1068x554.png 1068w, https://www.osradar.com/wp-content/uploads/2018/06/12-14-809x420.png 809w" sizes="(max-width: 1368px) 100vw, 1368px" /><figcaption id="caption-attachment-4564" class="wp-caption-text">12.- Leaving the container</figcaption></figure></p>
<p>Obviously with this we have not become a Docker expert but at least it gives us an idea of what the technology is like.</p>
<p>Don&#8217;t forget to share this article through your social networks.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/">How to install Docker CE on CentOS 7?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-docker-ce-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
