Okay, It’s common to have such issues while you are just starting your docker journey. You just installed Docker Engine in your Ubuntu or Debian-based distro. With joy, you ran docker version only to see your docker engine is not running but giving you an error message on your face like this:

Don’t give up yet the solution is way simpler than you imagined.

Just type: sudo chmod 666 /var/run/docker.sock and hit enter in your terminal. Then run docker version again and voila!

The word Duoneos is crafted from the word Duo and Neo. Duo means “two” and Neo means “inventor”. Hence the name Duoneos is for two inventors. We have two founders who have inventor mindsets and founded Duoneos with the goal of providing innovative SaaS Products with Software and Designing services.

As a #NodeJS developer you might have ran into this issue.

There are a common fix available for this, a simple command:

npm cache clean — force

However this won’t work in case you are facing issues with global packages.

In such case just delete the .npm folder in user directory and reinstall the package globally.

cd ~
rm -rf .npm

That will be it. Then you should not have the issue again.

  1. Create a new file called .htaccess in your public_html or public directory of your server

Edit the file with a text editor and put:

# BEGIN HTTPS Redirection Plugin
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END HTTPS Redirection Plugin

Save and close. Done! Yes. It’s easy as this. If you face any problem contact

Hello everyone, hope you find the story in good health. But if you really found it I guess you’re mind isn’t very well because you’re stuck in some error. This is very easy to fix and there are a lot of articles, posts on this out there. Still, I am writing about it because I try to write about the problems I encounter so that I can refer to them later when needed. Okay, let’s get started.

  1. Go to the directory where you installed Laravel
  2. Go to /app/Providers
  3. Open AppServiceProvider.php with a text editor(s)
  4. Add following line to boot() method: \Illuminate\Support\Facades\Schema::defaultStringLength(191);

There are other ways to do it. As you can put “use Illuminate\Support\Facades\Schema” at the top then put “defaultStringLength(191)” inside the boot method.


Zubair Hasan

I am Zubair Hasan also known as Zubo. I am the founder of a small startup called Duoneos which is located in Chattogram Bangladesh. A tech lover and programmer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store