<?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>Techy Things &#187; docker</title>
	<atom:link href="https://tech.yipp.ca/category/docker/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Docker Quickstart Guide</title>
		<link>https://tech.yipp.ca/docker/docker-quickstart-guide/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=docker-quickstart-guide</link>
		<comments>https://tech.yipp.ca/docker/docker-quickstart-guide/#comments</comments>
		<pubDate>Tue, 10 Apr 2018 17:56:02 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[docker]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3030</guid>
		<description><![CDATA[<p>Glossary host =&#62; the real machine container =&#62; inside host Start Docker Docker won't run by default after reboot. sudo systemctl start docker Verify that docker is installed correctly by running the hello-world image. sudo docker run hello-world&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/docker/docker-quickstart-guide/">Docker Quickstart Guide</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Glossary</h2>
<p>host =&gt; the real machine<br />
container =&gt; inside host</p>
<h2>Start Docker</h2>
<p>Docker won't run by default after reboot.</p>
<pre><span class="nb">sudo </span>systemctl start docker</pre>
<p>Verify that <code class="highlighter-rouge">docker</code> is installed correctly by running the <code class="highlighter-rouge">hello-world</code> image.</p>
<pre><span class="nb">sudo </span>docker run hello-world</pre>
<h2>List Existing Docker Images</h2>
<pre>docker image ls</pre>
<p>It will return a list like this (if you have use it for a while)</p>
<pre>REPOSITORY                    TAG                           IMAGE ID       CREATED         SIZE
selenium/standalone-chrome    latest                        09fb5857c74e   19 months ago   857MB
hello-world                   latest                        fce289e99eb9   23 months ago   1.84kB
calypso_vfcore-build          latest                        5b4730e3fbb1   2 years ago     929MB
libcerblicense-build          latest                        c7a73702b1e5   2 years ago     386MB
libcerb-build                 latest                        97deac334875   2 years ago     753MB
hmp-orthrus-build             calypso_os_base_build-cent6   de60aedbbd82   2 years ago     1.04GB
calypso_native-build          latest                        3467195ffe10   2 years ago     1.25GB
calypso_js-build              latest                        ad6cec0db18a   2 years ago     1.11GB
calypso_www-build             latest                        0bb30e97f177   2 years ago     1.49GB
calypso_os_base_build         cent6                         a9442bf2d72f   2 years ago     929MB
calypso_os_base_build         cent7                         426ad4aadad9   2 years ago     1.44GB
calypso_tc-fetch              latest                        3ac23b723553   2 years ago     931MB
centos                        6                             b5e5ffb5cdea   2 years ago     194MB
centos                        7                             5182e96772bf   2 years ago     200MB
python                        3                             825141134528   2 years ago     923MB
cdvrdeva12a0a98_backend       latest                        77428cfac8c4   2 years ago     3.12GB
cdvr-rpm-centos7              latest                        507dbd91a5d2   2 years ago     1.32GB
madra-rpm-centos7             latest                        a909b8b8b02e   2 years ago     814MB
cdvrdeva12a0a98_backend-gdb   latest                        3f05e146c10f   2 years ago     4.68GB
cdvrdeva12a0a98_frontend      latest                        e99f83b6f20e   2 years ago     1.98GB
cdvrdeva12a0a98_nightwatch    latest                        e0bd9f226bd8   2 years ago     3.12GB
cdvrdeva12a0a98_mongod        latest                        fc40335a2f52   2 years ago     2.26GB
cdvrdeva12a0a98_mongo         latest                        fc40335a2f52   2 years ago     2.26GB
cdvr-dev-base                 a12a0a98                      aafceed8649d   2 years ago     1.98GB
centos                        centos7                       49f7960eb7e4   2 years ago     200MB
ownyourbits/minidebian        latest                        50e95dd30fa1   3 years ago     58.1MB
</pre>
<h2>Delete All Docker Images</h2>
<p><span style="color: #ff6600;">WARNING !! it will really delete them...</span></p>
<pre>docker image ls -q | xargs -I {} docker image rm -f {}</pre>
<p>Note: It might not delete some with child-parent dependencies where one needs to be deleted first. Re-run "docker image ls" to see if all are deleted.</p>
<h2>Open a shell to the docker</h2>
<pre>docker exec -i -t &lt;name&gt; /bin/bash</pre>
<h2>Upload files to container</h2>
<p>Method 1 - Use shared volumes</p>
<p>Method 2 - Docker copy</p>
<h2>Shared Volumes</h2>
<pre>docker inspect kraken</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/docker/docker-quickstart-guide/">Docker Quickstart Guide</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/docker/docker-quickstart-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot connect to the Docker daemon. Is &#039;docker daemon&#039; running on this host?: dial unix /var/run/docker.sock: connect: permission denied</title>
		<link>https://tech.yipp.ca/docker/connect-docker-daemon-docker-daemon-running-host-dial-unix-varrundocker-sock-connect-permission-denied/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=connect-docker-daemon-docker-daemon-running-host-dial-unix-varrundocker-sock-connect-permission-denied</link>
		<comments>https://tech.yipp.ca/docker/connect-docker-daemon-docker-daemon-running-host-dial-unix-varrundocker-sock-connect-permission-denied/#comments</comments>
		<pubDate>Tue, 10 Apr 2018 15:13:59 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3058</guid>
		<description><![CDATA[<p>ERRO[0000] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied Got permission denied while trying to connect to the Docker&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/docker/connect-docker-daemon-docker-daemon-running-host-dial-unix-varrundocker-sock-connect-permission-denied/">Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>ERRO[0000] failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied<br />
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock</p>
<h2>Solution</h2>
<pre>$&gt; sudo usermod -aG docker &lt;your-username&gt;</pre>
<pre>$&gt; reboot</pre>
<pre>$&gt; sudo systemctl start docker</pre>
<pre>$&gt; sudo docker run hello-world</pre>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/docker/connect-docker-daemon-docker-daemon-running-host-dial-unix-varrundocker-sock-connect-permission-denied/">Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/docker/connect-docker-daemon-docker-daemon-running-host-dial-unix-varrundocker-sock-connect-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR: Couldn&#039;t connect to Docker daemon at http+docker://localunixsocket - is it running?</title>
		<link>https://tech.yipp.ca/docker/error-couldnt-connect-docker-daemon-httpdockerlocalunixsocket-running/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=error-couldnt-connect-docker-daemon-httpdockerlocalunixsocket-running</link>
		<comments>https://tech.yipp.ca/docker/error-couldnt-connect-docker-daemon-httpdockerlocalunixsocket-running/#comments</comments>
		<pubDate>Wed, 21 Feb 2018 22:08:30 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[docker]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2964</guid>
		<description><![CDATA[<p>+ docker-compose -f /home/dev/cal7/vfcore/calypso/docker/build/docker-compose.yaml stop tc-fetch WARNING: The HAI_BASEOS variable is not set. Defaulting to a blank string. ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running? If it's at a&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/docker/error-couldnt-connect-docker-daemon-httpdockerlocalunixsocket-running/">ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>+ docker-compose -f /home/dev/cal7/vfcore/calypso/docker/build/docker-compose.yaml stop tc-fetch
WARNING: The HAI_BASEOS variable is not set. Defaulting to a blank string.
ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.


[dev@baobab docker]$ docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

[dev@baobab docker]$ sudo docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64</pre>
<p>&nbsp;</p>
<h2>Solution</h2>
<p>[dev@baobab docker]$ sudo groupadd docker<br />
(Note: In most case this group will already exists, safely ignore the message)<br />
[dev@baobab docker]$ sudo usermod -aG docker ${USER}</p>
<p>and <strong>reboot</strong> (Important!)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/docker/error-couldnt-connect-docker-daemon-httpdockerlocalunixsocket-running/">ERROR: Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/docker/error-couldnt-connect-docker-daemon-httpdockerlocalunixsocket-running/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
