<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cristian Larios on Medium]]></title>
        <description><![CDATA[Stories by Cristian Larios on Medium]]></description>
        <link>https://medium.com/@cflarios?source=rss-aab7e5628c21------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KSwz80VAstZWNMuff8IA4w.jpeg</url>
            <title>Stories by Cristian Larios on Medium</title>
            <link>https://medium.com/@cflarios?source=rss-aab7e5628c21------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 04 Jun 2026 09:05:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cflarios/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[How to use docker with Raspberry pi?]]></title>
            <link>https://medium.com/@cflarios/how-to-use-docker-with-raspberry-pi-ea51aa80e2e8?source=rss-aab7e5628c21------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea51aa80e2e8</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Cristian Larios]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 20:35:54 GMT</pubDate>
            <atom:updated>2022-12-14T20:35:54.823Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you have a Raspberry Pi? well, that’s amazing! YOU have a powerful <strong>tool</strong> in your hands. Today i’m going to teach you how to use docker with this popular SoC.</p><p>If is your first time using Raspberry Pi, then you have to install an OS. I <strong>recommend</strong> raspbian. (Check out this <a href="https://medium.com/edureka/raspberry-pi-tutorial-48ea09514fba">tutorial</a>)</p><p>After you install the OS, you will need to install the next packages:</p><pre>sudo apt-get update &amp;&amp; sudo apt-get install -y \<br>     apt-transport-https \<br>     ca-certificates \<br>     curl \<br>     gnupg2 \<br>     software-properties-common \<br>     vim \<br>     fail2ban \<br>     ntfs-3g</pre><p>Now, the main protagonist is here, let’s begin with Docker.</p><p>Let’s install the GPG firms of the official Docker repository:</p><pre>curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -<br>sudo apt-key fingerprint 0EBFCD88</pre><p>We must add the Docker repository:</p><pre>echo &quot;deb [arch=armhf] https://download.docker.com/linux/debian \<br>     $(lsb_release -cs) stable&quot; | \<br>    sudo tee /etc/apt/sources.list.d/docker.list</pre><blockquote>NOTE: Docker versions older than 18.06 are presenting problems on raspbian. If you encounter “Segmentation fault” problems or the daemon does not start, you can prevent higher versions from installing by the following way</blockquote><pre>echo &quot;Package: docker-ce<br>Pin: version 18.06.1*<br>Pin-Priority: 1000&quot; &gt; /etc/apt/preferences.d/docker-ce</pre><p>Now, let’s install Docker:</p><pre>sudo apt-get update &amp;&amp; sudo apt-get install -y --no-install-recommends docker-ce docker-compose</pre><p>The next step is <strong>important </strong>because Docker needs an user in the Docker group on your linux system.</p><pre>sudo usermod -a -G docker &lt;user_name&gt;</pre><blockquote>After this, you need to restart your Raspberry Pi.</blockquote><p>Well, that’s it. You have Docker on your Raspberry Pi. But, now what? Let’s create a docker-compose shall we?</p><pre>version: &quot;2&quot;<br><br>services:<br><br>  samba:<br>    image: dperson/samba:rpi<br>    restart: always<br>    command: &#39;-u &quot;pi;password&quot; -s &quot;media;/media;yes;no&quot;&#39;<br>    stdin_open: true<br>    tty: true<br>    ports:<br>      - 139:130<br>      - 445:445<br>    volumes:<br>      - /usr/share/zoneinfo/America/Bogota:/etc/localtime<br>      - /home/pi/media:/media</pre><p>This docker-compose has the samba container for Raspberry Pi, it’s useful for sharing files on your home network.</p><p>And, finally let’s initialize the docker-compose that we created.</p><pre>docker-compose up -d</pre><p>The ‘-d’ command is special, it’s purpuse is to run the docker-compose file in the background. If you want to see the container logs, just erase the ‘-d’.</p><p>That’s it, you have a container running on your Raspberry Pi. You can share files or directories between your Raspberry Pi and your PC/Laptop. Pretty cool, right?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea51aa80e2e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>