<?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>Busy Network</title>
	<atom:link href="https://busy.network/feed/" rel="self" type="application/rss+xml" />
	<link>https://busy.network</link>
	<description>For system, network and cloud administrators</description>
	<lastBuildDate>Tue, 28 May 2024 03:42:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Pamac &#8211; most useful commands</title>
		<link>https://busy.network/pamac-most-useful-commands/</link>
					<comments>https://busy.network/pamac-most-useful-commands/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Tue, 19 Mar 2024 19:36:13 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Manjaro]]></category>
		<category><![CDATA[Pamac]]></category>
		<category><![CDATA[software package manager]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2825</guid>

					<description><![CDATA[Pamac, the Manjaro software package manager has a couple of useful commands. Install packages Install packages without confirmation I&#8217;m so used to Debian and Ubuntu and I always feel the need to surpress the &#8220;Yes/No&#8221; questions during package installation. So, on Manjaro you can just use the &#8211;no-confirm option in order to install them automatically: [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Pamac, the Manjaro software package manager has a couple of useful commands.</p>



<span id="more-2825"></span>



<h2 class="wp-block-heading">Install packages</h2>



<pre class="wp-block-code"><code>pamac install <em>package_name</em></code></pre>



<h2 class="wp-block-heading has-medium-font-size">Install packages without confirmation</h2>



<p>I&#8217;m so used to Debian and Ubuntu and I always feel the need to surpress the <em>&#8220;Yes/No&#8221;</em> questions during package installation. So, on Manjaro you can just use the <em>&#8211;no-confirm</em> option in order to install them automatically:</p>



<pre class="wp-block-code"><code>pamac install <em>--no-confirm package_name</em></code></pre>



<h2 class="wp-block-heading">Remove packages</h2>



<pre class="wp-block-code"><code>pamac remove <em>package_name</em></code></pre>



<h2 class="wp-block-heading has-medium-font-size">Remove a package and its no longer required dependencies</h2>



<p>Which are called <em>orphans</em>:</p>



<pre class="wp-block-code"><code>pamac remove --<em>orphans package_name</em></code></pre>



<h2 class="wp-block-heading has-medium-font-size">Remove packages only if they are not required by any other packages</h2>



<pre class="wp-block-code"><code>pamac remove <em>--unneeded</em>, u</code></pre>



<h2 class="wp-block-heading">Search for packages</h2>



<pre class="wp-block-code"><code>pamac search <em>package_name</em></code></pre>



<h2 class="wp-block-heading">List all installed packages</h2>



<pre class="wp-block-code"><code>pamac list <em>--installed</em></code></pre>



<h2 class="wp-block-heading">Check for package updates</h2>



<pre class="wp-block-code"><code>pamac checkupdates</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/pamac-most-useful-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to fix AWS EC2 error &#8220;No default VPC for this user&#8221; in Terraform</title>
		<link>https://busy.network/how-to-fix-aws-ec2-error-no-default-vpc-for-this-user-in-terraform/</link>
					<comments>https://busy.network/how-to-fix-aws-ec2-error-no-default-vpc-for-this-user-in-terraform/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Mon, 05 Jun 2023 12:14:36 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Amazon Machine Images (AMI)]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[AWS EC2]]></category>
		<category><![CDATA[AWS Instance type]]></category>
		<category><![CDATA[AWS provider]]></category>
		<category><![CDATA[AWS provider region]]></category>
		<category><![CDATA[Terraform]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2799</guid>

					<description><![CDATA[Sometimes, when trying to create an AWS EC2 instance in Terraform, you might come across an error similar to: The error refers to the user not having access to the proper AWS resources declared in the Terraform code. Like trying to access an EC2 instance in the wrong AWS zone region. So, basically Terraform will [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Sometimes, when trying to create an AWS EC2 instance in Terraform, you might come across an error similar to:</p>



<pre class="wp-block-code"><code>Error: creating EC2 Instance: VPCIdNotSpecified: No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC.</code></pre>



<span id="more-2799"></span>



<p>The error refers to the user not having access to the proper AWS resources declared in the Terraform code. Like trying to access an EC2 instance in the wrong AWS zone region. So, basically Terraform will try to create an EC2 instance of an Ubuntu server using the <strong>region</strong>, <strong>AMI id</strong> and <strong>instance type</strong> provided in the code but it will not find those things thus the error. </p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="980" height="60" src="https://busy.network/wp-content/uploads/2023/06/AWS_EC2_error_No_default_VPC_for_this_user_in_Terraform.png" alt="How to fix AWS EC2 error &quot;No default VPC for this user&quot; in Terraform" class="wp-image-2815" srcset="https://busy.network/wp-content/uploads/2023/06/AWS_EC2_error_No_default_VPC_for_this_user_in_Terraform.png 980w, https://busy.network/wp-content/uploads/2023/06/AWS_EC2_error_No_default_VPC_for_this_user_in_Terraform-500x31.png 500w, https://busy.network/wp-content/uploads/2023/06/AWS_EC2_error_No_default_VPC_for_this_user_in_Terraform-768x47.png 768w, https://busy.network/wp-content/uploads/2023/06/AWS_EC2_error_No_default_VPC_for_this_user_in_Terraform-200x12.png 200w, https://busy.network/wp-content/uploads/2023/06/AWS_EC2_error_No_default_VPC_for_this_user_in_Terraform-800x49.png 800w" sizes="(max-width: 980px) 100vw, 980px" /><figcaption class="wp-element-caption">AWS EC2 error when trying to create an instance</figcaption></figure>



<p>To make sure you&#8217;re providing the correct info about your AWS resources:</p>



<ul class="wp-block-list">
<li>choose the <strong>region </strong>your project needs to be into <em>(us-east-1, eu-west-1, etc.)</em>;</li>



<li>for choosing the proper <strong>AMI</strong> <em>(Amazon Machine Images)</em> with its proper id, browse to <em>AWS Management Console > EC2 > Images > AMIs catalog</em>;</li>



<li>then, depending on the requirement of your project, choose a proper <strong>instance type </strong>by going to <em>AWS Management Console > Instances > Instance types</em>.</li>
</ul>



<p>For example:</p>



<pre class="wp-block-code"><code>provider "aws" {
  region = "eu-west-2"
}
resource "aws_instance" "ec2" {
  ami = "ami-0a6006bac3b9bb8d3"
  instance_type = "t2.micro"
}</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-fix-aws-ec2-error-no-default-vpc-for-this-user-in-terraform/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to append text to a file in Linux</title>
		<link>https://busy.network/how-to-append-text-to-a-file-in-linux/</link>
					<comments>https://busy.network/how-to-append-text-to-a-file-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Thu, 30 Mar 2023 18:52:14 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[End Of File]]></category>
		<category><![CDATA[EOF]]></category>
		<category><![CDATA[podman]]></category>
		<category><![CDATA[sudoers]]></category>
		<category><![CDATA[tee]]></category>
		<category><![CDATA[Ubuntu desktop]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2322</guid>

					<description><![CDATA[For example, I wanted the current logged user in my Ubuntu desktop, to be added to the sudoers file. That was important for me because I wanted to run podman. In order to do that, I&#8217;ve used several methods. How to append text to a file in Linux using the tee command The tee -a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>For example, I wanted the current logged user in my Ubuntu desktop, to be added to the <code>sudoers</code> file. That was important for me because I wanted to run <code>podman</code>. In order to do that, I&#8217;ve used several methods.</p>



<span id="more-2322"></span>



<h2 class="wp-block-heading">How to append text to a file in Linux using the <em>tee</em> command</h2>



<p>The <em>tee -a</em> command (or <em>tee &#8211;append</em>) can be used to append (write at the end of the file) the current logged in user to the <em>sudoers</em> file:</p>



<pre class="wp-block-code"><code>echo $USER | sudo tee -a /etc/sudoers </code></pre>



<h2 class="wp-block-heading">How to append text to a file in Linux using the <em>cat</em> command</h2>



<p>You can append text to a file in Linux using the <em>cat</em> command in combination with with <em>EOF</em> (End Of File):</p>



<pre class="wp-block-code"><code>cat &gt;&gt; /etc/sudoers &lt;&lt; <strong>EOF</strong>
busyneo    ALL=(ALL:ALL) ALL
<strong>EOF</strong></code></pre>



<p>You can notice that in the above example, I&#8217;m basically marking the start and the beginning of my text that I need inserted into the <em>sudoers</em> file by using <em>EOF<span style="text-decoration: underline;">.</span></em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-append-text-to-a-file-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Alpine linux commands</title>
		<link>https://busy.network/alpine-linux-commands/</link>
					<comments>https://busy.network/alpine-linux-commands/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Thu, 30 Mar 2023 15:36:53 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Alpine]]></category>
		<category><![CDATA[apk]]></category>
		<category><![CDATA[apk add]]></category>
		<category><![CDATA[apk cache]]></category>
		<category><![CDATA[apk del]]></category>
		<category><![CDATA[apk info]]></category>
		<category><![CDATA[apk search]]></category>
		<category><![CDATA[apk update]]></category>
		<category><![CDATA[apk upgrade]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2679</guid>

					<description><![CDATA[Alpine linux&#8217;s focus seems to be on being small and secure. A lot of things in Alpine linux are being done using the apk (Alpine Package Keeper) command. Basic commands in Alpine linux Packages and repositories in Alpine linux]]></description>
										<content:encoded><![CDATA[
<p>Alpine linux&#8217;s focus seems to be on being small and secure. A lot of things in Alpine linux are being done using the <em>apk</em> <em>(Alpine Package Keeper)</em> command. </p>



<span id="more-2679"></span>



<h2 class="wp-block-heading">Basic commands in Alpine linux</h2>



<ul class="wp-block-list">
<li>You can check the current <em>apk</em> version by running the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk --version</code></pre>



<h2 class="wp-block-heading">Packages and repositories in Alpine linux </h2>



<ul class="wp-block-list">
<li>Remove all the old formed cache from packages in Alpine linux by running the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk cache clean
apk -v cache clean</code></pre>



<ul class="wp-block-list">
<li>Start fresh: clean packages caches and download missing packages in Alpine linux using the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk cache -v sync</code></pre>



<ul class="wp-block-list">
<li>For example, in order to update and upgrade Alpine linux repositories:</li>
</ul>



<pre class="wp-block-code"><code>apk update &amp;&amp; apk upgrade</code></pre>



<ul class="wp-block-list">
<li>To view all packages available in Alpine linux, we can use:</li>
</ul>



<pre class="wp-block-code"><code>apk search -v</code></pre>



<ul class="wp-block-list">
<li>To search for a particular package and in their description in Alpine linux, we can use:</li>
</ul>



<pre class="wp-block-code"><code>apk -v -d <em>"package_name"</em></code></pre>



<ul class="wp-block-list">
<li>Or to confirm installation of the packages in Alpine linux, using the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk <em>add package_name1 package_name2</em></code></pre>



<ul class="wp-block-list">
<li>Or to confirm package upgrade in Alpine linux:</li>
</ul>



<pre class="wp-block-code"><code>apk upgrade <em>package_name</em></code></pre>



<ul class="wp-block-list">
<li>To delete a specific package in Alpine linux, we can use the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk del <em>package_name1 package_name2</em></code></pre>



<ul class="wp-block-list">
<li>To view all current installed packages in Alpine linux, we can use the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk info</code></pre>



<ul class="wp-block-list">
<li>To check if a certain package is installed in Alpine linux, we use the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk -e info <em>package_name</em></code></pre>



<ul class="wp-block-list">
<li>And if we need to manually install an .<em>apk</em> package in Alpine linux, we can use the following command:</li>
</ul>



<pre class="wp-block-code"><code>apk --allow-untrusted <em>path/to/package1.apk path/to/package2.apk</em></code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/alpine-linux-commands/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to extract .rar archives/files in Linux</title>
		<link>https://busy.network/how-to-extract-rar-archives-files-in-linux/</link>
					<comments>https://busy.network/how-to-extract-rar-archives-files-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Mon, 20 Mar 2023 11:17:00 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[epel-release]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[RAR]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[unar]]></category>
		<category><![CDATA[unrar]]></category>
		<category><![CDATA[unrar-free]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2736</guid>

					<description><![CDATA[All over the web, you might encounter some much needed files are archived using RAR, like your Linux course certification files, for example. That&#8217;s when, it&#8217;s useful to know how to extract them using the proper software. Ubuntu / Debian based Linux distributions If you&#8217;re using an Ubuntu or Debian based distribution, you can use [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>All over the web, you might encounter some much needed files are archived using RAR, like your Linux course certification files, for example. That&#8217;s when, it&#8217;s useful to know how to extract them using the proper software.</p>



<span id="more-2736"></span>



<h2 class="wp-block-heading">Ubuntu / Debian based Linux distributions</h2>



<p>If you&#8217;re using an Ubuntu or Debian based distribution, you can use the free version of <em>unrar</em> and you can install it using the following command:</p>



<pre class="wp-block-code"><code>sudo apt install -y unrar-free</code></pre>



<p>Create a folder and extract your files inside it using the following command:</p>



<pre class="wp-block-code"><code>unrar -x <em>yourfile.rar /path/to/your/folder</em>/</code></pre>



<p>As you may have noticed, the <em>-x</em> flag is actually telling the program to start the extraction process. And you can also use the:</p>



<ul class="wp-block-list">
<li><em>-p</em> flag, if you&#8217;re extracting from a password protected <em>.rar</em> archive;</li>



<li><em>-f</em> flag, if you want to force/overwrite the files during the extraction process;</li>



<li><em>-t</em> flag, to just list the files within a <em>.rar</em> archive;</li>



<li><em>-v</em> flag, to check the software&#8217;s version.</li>
</ul>



<h2 class="wp-block-heading">Red Hat Enterprise Linux (RHEL) based Linux distributions</h2>



<p>If you&#8217;re using a RHEL based distribution such as, <em>CentOS</em>, for example, you can use the <em>unar</em> package; the thing is, you&#8217;ll first have to install the <em>epel-release</em> package and then you&#8217;ll be able to install:</p>



<pre class="wp-block-code"><code>sudo yum install -y epel-release
sudo yum install -y unar</code></pre>



<p>But if you&#8217;re using, let&#8217;s say,  <em>Fedora</em>, then you can just use the following command:</p>



<pre class="wp-block-code"><code>sudo dnf install -y unar</code></pre>



<p>Now, in order to extract the <em>.rar</em> archive using the <em>unar</em> package, you can use the following command:</p>



<pre class="wp-block-code"><code>unar <em>yourfile.rar</em></code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-extract-rar-archives-files-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to fix &#8220;Could not resolve host: mirrorlist.centos.org; Unknown error&#8221;</title>
		<link>https://busy.network/how-to-fix-could-not-resolve-host-mirrorlist-centos-org-unknown-error/</link>
					<comments>https://busy.network/how-to-fix-could-not-resolve-host-mirrorlist-centos-org-unknown-error/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Mon, 20 Mar 2023 07:06:04 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 7]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[nameserver]]></category>
		<category><![CDATA[nsswitch.conf]]></category>
		<category><![CDATA[resolv.conf]]></category>
		<category><![CDATA[RHEL]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2732</guid>

					<description><![CDATA[This can happen after a fresh installation of CentOS. The /etc/resolv.conf is looking for a DNS that it can use but after a fresh installation, it usually comes empty. So, if the file has no DNS to look after, then it can not resolve hostnames. This should tell you that the current machine is using [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>This can happen after a fresh installation of CentOS. The <em>/etc/resolv.conf</em> is looking for a DNS that it can use but after a fresh installation, it usually comes empty. So, if the file has no DNS to look after, then it can not resolve <em>hostnames</em>. This should tell you that the current machine is using the wrong DNS server.</p>



<span id="more-2732"></span>



<p>So, there are 2 ways you can fix this:</p>



<ol class="wp-block-list">
<li>You check your main/local router&#8217;s DNS settings.</li>



<li>You manually add a DNS server to your current host by:</li>
</ol>



<ul class="wp-block-list">
<li>editing <em>/etc/resolv.conf</em> and adding the following line:</li>
</ul>



<pre class="wp-block-code"><code>nameserver 8.8.8.8</code></pre>



<ul class="wp-block-list">
<li>updating the repositories, again:</li>
</ul>



<pre class="wp-block-code"><code>sudo yum update -y</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-fix-could-not-resolve-host-mirrorlist-centos-org-unknown-error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to view the size of your Docker containers</title>
		<link>https://busy.network/how-to-view-the-size-of-your-docker-containers/</link>
					<comments>https://busy.network/how-to-view-the-size-of-your-docker-containers/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Fri, 17 Mar 2023 07:00:45 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker CLI]]></category>
		<category><![CDATA[Docker containers]]></category>
		<category><![CDATA[Docker images]]></category>
		<category><![CDATA[Docker ps]]></category>
		<category><![CDATA[Docker system]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2711</guid>

					<description><![CDATA[I came across situations where I needed tot test which Docker image would be most suitable for a particular set of needs and one of those metrics that I used was disk space. I remember the more I used to get started with Docker, the more I was curious to see which Docker images consume [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>I came across situations where I needed tot test which Docker image would be most suitable for a particular set of needs and one of those metrics that I used was disk space. I remember the more I used to get started with Docker, the more I was curious to see which Docker images consume more or less resources. </p>



<span id="more-2711"></span>



<p>For starters, in order to get an overview of all your disk usage from the Docker images, containers, build cache size and so on, you can use the following command:</p>



<pre class="wp-block-code"><code>docker system df</code></pre>



<p>But if you need a more detailed view, describing every Docker item that takes up resources in each category (volumes, images, etc.), you can just add the <em>-v</em> (verbose) flag to the command above:</p>



<pre class="wp-block-code"><code>docker system df -v
# or docker system df --verbose</code></pre>



<p>You can also use the <em>-s</em> flag to the <em>ps </em>command and get each Docker  container&#8217;s size: </p>



<pre class="wp-block-code"><code>docker ps -s
# or docker ps --size</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-view-the-size-of-your-docker-containers/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to view the IP of a Docker container</title>
		<link>https://busy.network/how-to-view-the-ip-of-a-docker-container/</link>
					<comments>https://busy.network/how-to-view-the-ip-of-a-docker-container/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Fri, 10 Feb 2023 12:12:30 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker CLI]]></category>
		<category><![CDATA[Docker containers]]></category>
		<category><![CDATA[Docker inspect]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2669</guid>

					<description><![CDATA[In order to view the IP of a Docker container, you can execute the following command: But you can also use grep:]]></description>
										<content:encoded><![CDATA[
<p>In order to view the IP of a Docker container, you can execute the following command:</p>



<pre class="wp-block-code"><code>docker inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}" <em>container_ID_or_name</em></code></pre>



<p>But you can also use <em>grep</em>:</p>



<pre class="wp-block-code"><code>docker inspect <em>container_name</em> | grep "IPv4"</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-view-the-ip-of-a-docker-container/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to run Docker in debug mode and view container logs?</title>
		<link>https://busy.network/how-to-run-docker-in-debug-mode-and-view-container-logs/</link>
					<comments>https://busy.network/how-to-run-docker-in-debug-mode-and-view-container-logs/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Wed, 14 Dec 2022 14:41:54 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker CLI]]></category>
		<category><![CDATA[Docker containers]]></category>
		<category><![CDATA[Docker debug mode]]></category>
		<category><![CDATA[Docker events]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2633</guid>

					<description><![CDATA[By this point, any Docker command that you&#8217;ll run next will be viewed with more logs. In my case above, I forgot to close my code block with &#8220;}&#8221;. Thus, the container didn&#8217;t run. And that&#8217;s how you can use Docker in debug mode.]]></description>
										<content:encoded><![CDATA[
<ol class="wp-block-list">
<li>Execute the <em>Docker events</em> command:</li>
</ol>



<pre class="wp-block-code"><code>docker events &amp;</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img decoding="async" src="https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_full-1024x115.png" alt="How to run Docker in debug mode and view container logs? Docker events command." class="wp-image-2650" width="512" height="58" srcset="https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_full-1024x115.png 1024w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_full-500x56.png 500w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_full-768x87.png 768w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_full-200x23.png 200w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_full-800x90.png 800w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_full.png 1242w" sizes="(max-width: 512px) 100vw, 512px" /><figcaption class="wp-element-caption">Docker events command</figcaption></figure>
</div>


<p>By this point, any Docker command that you&#8217;ll run next will be viewed with more logs. </p>



<span id="more-2633"></span>



<ol class="wp-block-list" start="2">
<li>Execute your Docker command (for example: run a container or create an image): </li>
</ol>



<pre class="wp-block-code"><code>docker container run -d --name nginx-r-p-container --publish 80:80 nginx-reverse-proxy:latest</code></pre>



<figure class="wp-block-image size-full"><img decoding="async" width="2000" height="118" src="https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-2000x118.png" alt="How to run Docker in debug mode and view container logs? Docker container died." class="wp-image-2653" srcset="https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-2000x118.png 2000w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-500x29.png 500w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-1024x60.png 1024w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-768x45.png 768w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-1536x90.png 1536w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-2048x121.png 2048w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-200x12.png 200w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_die_container_full-800x47.png 800w" sizes="(max-width: 2000px) 100vw, 2000px" /><figcaption class="wp-element-caption">Getting the Docker instance ID of the container</figcaption></figure>



<ol class="wp-block-list" start="3">
<li>Check the logs of the Docker instance ID that concerns you:</li>
</ol>



<pre class="wp-block-code"><code>docker logs 250629587af532239d8b165e924f9217134cf662a5ba1ce0855c55f70e152f63</code></pre>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="2000" height="471" src="https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-2000x471.png" alt="How to run Docker in debug mode and view container logs? View Docker container logs." class="wp-image-2654" srcset="https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-2000x471.png 2000w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-500x118.png 500w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-1024x241.png 1024w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-768x181.png 768w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-1536x362.png 1536w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-2048x482.png 2048w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-200x47.png 200w, https://busy.network/wp-content/uploads/2022/12/how_to_run_docker_in_debug_mode_logs_container_full-800x188.png 800w" sizes="auto, (max-width: 2000px) 100vw, 2000px" /><figcaption class="wp-element-caption">Debugging the Docker container that died</figcaption></figure>
</div>


<p>In my case above, I forgot to close my code block with <em>&#8220;}&#8221;</em>. Thus, the container didn&#8217;t run. And that&#8217;s how you can use Docker in debug mode.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-run-docker-in-debug-mode-and-view-container-logs/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to remove &#8220;none&#8221; Docker images</title>
		<link>https://busy.network/how-to-remove-none-docker-images/</link>
					<comments>https://busy.network/how-to-remove-none-docker-images/#respond</comments>
		
		<dc:creator><![CDATA[Iulian Donici]]></dc:creator>
		<pubDate>Wed, 14 Dec 2022 13:28:58 +0000</pubDate>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Docker CLI]]></category>
		<category><![CDATA[Docker images]]></category>
		<guid isPermaLink="false">https://busy.network/?p=2625</guid>

					<description><![CDATA[In the process of building a Docker image, you might find yourself in the situation where a &#8220;none&#8221; image is dangling in your Docker registry, as seen below: In order to remove the &#8220;none&#8221; Docker images, you can use:]]></description>
										<content:encoded><![CDATA[
<p>In the process of building a Docker image, you might find yourself in the situation where a <em>&#8220;none&#8221;</em> image is <em>dangling</em> in your Docker registry, as seen below:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="187" src="https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full-1024x187.png" alt="" class="wp-image-2628" srcset="https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full-1024x187.png 1024w, https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full-500x91.png 500w, https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full-768x140.png 768w, https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full-1536x280.png 1536w, https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full-200x36.png 200w, https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full-800x146.png 800w, https://busy.network/wp-content/uploads/2022/12/how_to_remove_none_Docker_images_full.png 1700w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">Listing Docker images</figcaption></figure>



<p>In order to remove the <em>&#8220;none&#8221;</em> Docker images, you can use:</p>



<pre class="wp-block-code"><code>docker rmi -f $(docker images --filter "dangling=true" -q --no-trunc)</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://busy.network/how-to-remove-none-docker-images/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
