<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Laradock on Mazer.dev</title><link>https://mazer.dev/en/tags/laradock/</link><description>Recent content in Laradock on Mazer.dev</description><generator>Hugo</generator><language>en</language><copyright>Copyright © 2016-2025 Ademir Mazer Junior. All Rights Reserved.</copyright><lastBuildDate>Wed, 12 Oct 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://mazer.dev/en/tags/laradock/index.xml" rel="self" type="application/rss+xml"/><item><title>Backup and Restore of MySQL, Mariadb and PostgreSQL databases in Docker Laradock</title><link>https://mazer.dev/en/docker/laradock/backup-restore-databases-docker-laradock/</link><pubDate>Wed, 12 Oct 2022 00:00:00 +0000</pubDate><guid>https://mazer.dev/en/docker/laradock/backup-restore-databases-docker-laradock/</guid><description><![CDATA[<p>As with any essential software project back up database data, as well as restore these backups, your MySQL or Mariadb databases, as well as PostgreSQL.</p>
<p>When you are working with the developmental environment of your Laravel PHP projects in Laradock Docker containers, it is important to understand how the directories and files structure is configured in Docker.</p>

<h2 id="where-are-the-database-files-at-docker-laradock" data-numberify>Where are the database files at Docker Laradock<a class="anchor ms-1" href="#where-are-the-database-files-at-docker-laradock"></a></h2>
<p>In Docker the files manipulated in their containers may exist only during the time of execution, or have
shared volumes with the host operating system.</p>]]></description></item><item><title>How to solve “COMPOSER_AUTH” does not match the expected JSON schema no Laradock</title><link>https://mazer.dev/en/docker/laradock/troubleshooting/how-solve-composer_auth-does-not-match-the-expected-json-schema/</link><pubDate>Sat, 18 Jun 2022 17:42:58 +0000</pubDate><guid>https://mazer.dev/en/docker/laradock/troubleshooting/how-solve-composer_auth-does-not-match-the-expected-json-schema/</guid><description><![CDATA[<p>When using <a href="/laradock-instalacao-e-configuracao/">Laradock</a>, by accessing the container <code>Workspace</code> I have sometimes received the following error when trying to execute PHP <code>composer</code>:</p>
<pre tabindex="0"><code class="language-bash"" data-lang="bash"">COMPOSER_AUTH&#34; does not match the expected JSON schema, this may result in errors and should be resolved:  
   - Boolean value found, but an object is required  
</code></pre><p>According to <a href="https://github.com/laradock/laradock/issues/3189" target="_blank" rel="noreferrer noopener">this issue</a>of Laradock project, the problem has being solves, but if you still come across it, there is a simple way to get around until you update your containers.</p>]]></description></item><item><title>Error on LaraDock with Mac Silicon computer (MacBook Pro M1) – Docker Desktop Apache2_1 exit with code 2</title><link>https://mazer.dev/en/docker/laradock/troubleshooting/mac-silicon-computer-macbook-pro-m1-docker-desktop-apache2_1-exit-code-2/</link><pubDate>Wed, 06 Apr 2022 01:55:16 +0000</pubDate><guid>https://mazer.dev/en/docker/laradock/troubleshooting/mac-silicon-computer-macbook-pro-m1-docker-desktop-apache2_1-exit-code-2/</guid><description><![CDATA[<p>In an installation of <a href="/en/docker/laradock/installation-and-configuration/">Laradock</a>, to run the Docker environment in a Mac Silicon Computer (MacBook Pro or M1) Following the steps below, Apache2 does not go up, showing error <code>exited code2</code>:</p>
<p><strong>Steps to reproduce</strong></p>
<ol>
<li>git clone <a href="mailto:git@github.com">git@github.com</a>:laradock/laradock.git</li>
<li>cd laradock</li>
<li>cp .env.example .env</li>
<li>docker-compose build workspace</li>
<li>docker-compose build apache2</li>
<li>docker-compose up apache2 workspace <strong>&ndash;&gt; Apache2_1 exited with code 2</strong></li>
</ol>

<h2 id="fixing-the-error-apache2-exited-code-2-with-docker-on-macos" data-numberify>Fixing the error Apache2 exited code 2 with Docker on MacOs<a class="anchor ms-1" href="#fixing-the-error-apache2-exited-code-2-with-docker-on-macos"></a></h2>
<p>To solve this problem you need to edit the <code>/apache2/dockerfile</code> file, found from the Laradock directory.</p>]]></description></item><item><title>How to Solve Laradock and Docker Error with Python Modules</title><link>https://mazer.dev/en/docker/laradock/troubleshooting/how-solve-laradock-docker-error-python-modules/</link><pubDate>Wed, 06 Apr 2022 01:40:07 +0000</pubDate><guid>https://mazer.dev/en/docker/laradock/troubleshooting/how-solve-laradock-docker-error-python-modules/</guid><description><![CDATA[<p>When trying to up Docker containers, using the distribution of <a href="/en/laradock-containers-docker-para-desenvolvimento-php-laravel/">Laradock</a>, with standard images of <code>apache2</code>, <code>redis</code>, <code>mariadb</code> e <code>workspace</code>, I came across the following list of errors.</p>
<p>Apparently the errors describe that Python modules are not available because it does not find the <code>*.py</code> files.</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">docker-compose up -d apache2 redis mariadb workspace 
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># output</span>
</span></span><span class="line"><span class="cl">Traceback <span class="o">(</span>most recent call last<span class="o">)</span>:
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;urllib3/connectionpool.py&#34;</span>, line 670, in urlopen
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;urllib3/connectionpool.py&#34;</span>, line 392, in _make_request
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1255, in request
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1301, in _send_request
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1250, in endheaders
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1010, in _send_output
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 950, in send
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/transport/unixconn.py&#34;</span>, line 43, in connect
</span></span><span class="line"><span class="cl">FileNotFoundError: <span class="o">[</span>Errno 2<span class="o">]</span> No such file or directory
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">During handling of the above exception, another exception occurred:
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Traceback <span class="o">(</span>most recent call last<span class="o">)</span>:
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;requests/adapters.py&#34;</span>, line 439, in send
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;urllib3/connectionpool.py&#34;</span>, line 726, in urlopen
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;urllib3/util/retry.py&#34;</span>, line 410, in increment
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;urllib3/packages/six.py&#34;</span>, line 734, in reraise
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;urllib3/connectionpool.py&#34;</span>, line 670, in urlopen
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;urllib3/connectionpool.py&#34;</span>, line 392, in _make_request
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1255, in request
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1301, in _send_request
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1250, in endheaders
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 1010, in _send_output
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;http/client.py&#34;</span>, line 950, in send
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/transport/unixconn.py&#34;</span>, line 43, in connect
</span></span><span class="line"><span class="cl">urllib3.exceptions.ProtocolError: <span class="o">(</span><span class="s1">&#39;Connection aborted.&#39;</span>, FileNotFoundError<span class="o">(</span>2, <span class="s1">&#39;No such file or directory&#39;</span><span class="o">))</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">During handling of the above exception, another exception occurred:
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Traceback <span class="o">(</span>most recent call last<span class="o">)</span>:
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/api/client.py&#34;</span>, line 214, in _retrieve_server_version
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/api/daemon.py&#34;</span>, line 181, in version
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/utils/decorators.py&#34;</span>, line 46, in inner
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/api/client.py&#34;</span>, line 237, in _get
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;requests/sessions.py&#34;</span>, line 543, in get
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;requests/sessions.py&#34;</span>, line 530, in request
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;requests/sessions.py&#34;</span>, line 643, in send
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;requests/adapters.py&#34;</span>, line 498, in send
</span></span><span class="line"><span class="cl">requests.exceptions.ConnectionError: <span class="o">(</span><span class="s1">&#39;Connection aborted.&#39;</span>, FileNotFoundError<span class="o">(</span>2, <span class="s1">&#39;No such file or directory&#39;</span><span class="o">))</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">During handling of the above exception, another exception occurred:
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">Traceback <span class="o">(</span>most recent call last<span class="o">)</span>:
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker-compose&#34;</span>, line 3, in &lt;module&gt;
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;compose/cli/main.py&#34;</span>, line 81, in main
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;compose/cli/main.py&#34;</span>, line 200, in perform_command
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;compose/cli/command.py&#34;</span>, line 60, in project_from_options
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;compose/cli/command.py&#34;</span>, line 152, in get_project
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;compose/cli/docker_client.py&#34;</span>, line 41, in get_client
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;compose/cli/docker_client.py&#34;</span>, line 170, in docker_client
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/api/client.py&#34;</span>, line 197, in __init__
</span></span><span class="line"><span class="cl">  File <span class="s2">&#34;docker/api/client.py&#34;</span>, line 221, in _retrieve_server_version
</span></span><span class="line"><span class="cl">docker.errors.DockerException: Error <span class="k">while</span> fetching server API version: <span class="o">(</span><span class="s1">&#39;Connection aborted.&#39;</span>, FileNotFoundError<span class="o">(</span>2, <span class="s1">&#39;No such file or directory&#39;</span><span class="o">))</span>
</span></span><span class="line"><span class="cl"><span class="o">[</span>8278<span class="o">]</span> Failed to execute script docker-compose
</span></span></code></pre></div>
<h2 id="fixing-docker-error-with-python" data-numberify>Fixing Docker Error with Python<a class="anchor ms-1" href="#fixing-docker-error-with-python"></a></h2>
<p>Despite an extensive list of errors and poorly descriptive messages, the solution is extremely simple:</p>]]></description></item><item><title>Laravel database connection with Docker Laradock</title><link>https://mazer.dev/en/docker/laradock/database-laravel-connections-laradock/</link><pubDate>Tue, 21 Sep 2021 00:47:24 +0000</pubDate><guid>https://mazer.dev/en/docker/laradock/database-laravel-connections-laradock/</guid><description><![CDATA[<p>The Laravel database connection using Laradock is very straightforward and intuitive with MySQL or Mariadb database servers in a Laravel PHP project when using Laradock Project Docker containers.</p>
<p>But some tips and reminders are important to prevent you from wasting time when preparing your environment of developing a Laradock Laravel application that uses DBMs.</p>
<p>In this article I will exemplify in addition to configuration and connection, tips for importing mysql or mariadb SQL dumps from your host for the desired Container Docker.</p>]]></description><enclosure url="https://mazer.dev/en/docker/laradock/database-laravel-connections-laradock/featured-people-with-databases.webp" length="49688" type="image/webp"/></item><item><title>Laradock, Installation and Configuration</title><link>https://mazer.dev/en/docker/laradock/installation-and-configuration/</link><pubDate>Fri, 03 Sep 2021 19:43:07 +0000</pubDate><guid>https://mazer.dev/en/docker/laradock/installation-and-configuration/</guid><description><![CDATA[<p>Learn now how to install and configure Laradock, which is, as presented in the <a href="/en/docker/introduction/how-to-install-docker-and-docker-compose-on-linux-ubuntu-mint-debian/">Introductory Article</a>, a project for quick and simple configuration of PHP Web Systems Development Environments using Docker.</p>
<p>In this tutorial article, we will see more in detail how to install and configure a Laradock environment <s> to work by PHP project, that is, an installation for each project </s>. Or how to use an installation for multiple projects.</p>]]></description><enclosure url="https://mazer.dev/en/docker/laradock/installation-and-configuration/featured-laradock-laravel-docker.webp" length="28518" type="image/webp"/></item><item><title>Laradock – Containers Docker for your PHP and Laravel Projects - Introduction</title><link>https://mazer.dev/en/docker/laradock/introduction-containers-docker-php-laravel/</link><pubDate>Tue, 31 Aug 2021 00:50:46 +0000</pubDate><guid>https://mazer.dev/en/docker/laradock/introduction-containers-docker-php-laravel/</guid><description><![CDATA[<p>Laradock is a complete web development environment for Docker, which was born to meet the development of Laravel systems and currently provides containers for various situations for PHP development.</p>
<p>It supports a variety of common services, all pre-configured to provide a PHP development environment, [Laravel]({&lt;Relref &ldquo;Laravel&rdquo;&gt;}}), WordPress, Joomla, Drupal, Cakephp, among others, and totally ready to up and ease use.</p>
<p>In this introductory article you will have an overview of the project, the features of Laradock, and a quick configuration explanation.
To go further with it&rsquo;s use and settings read the tutorials accessible by the section menu.</p>]]></description><enclosure url="https://mazer.dev/en/docker/laradock/introduction-containers-docker-php-laravel/featured-laradock.webp" length="6444" type="image/webp"/></item></channel></rss>