Skip to content

linux

Got permission denied while trying to connect to the Docker daemon socket

got permission denied while trying to connect to the docker daemon socket post logo

This guide will show you how to fix the error Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock when trying to run docker commands.

The Docker daemon binds to a Unix socket instead of a TCP port, but only root users can access this socket by default, hence, when you run docker commands without sudo, you will get the error below:

~ $ docker run hello-world

docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/create": dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
Read More »Got permission denied while trying to connect to the Docker daemon socket

Create aliases for commands on Unix

linux shell

This tutorial will show how to create aliases for commands on Unix based systems, so you can run any set of commands with a simple shortcut.

An alias is a shortcut for a different and sometimes more complicated command, which is integrated to your bash so you can run them from any path with the help from auto-completion. for example, on Linux Mint, we have the following aliases defined by default:

alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

This means that running la in your shell will be the same as running ls -A

Read More »Create aliases for commands on Unix

Open SSH connection on Linux

shell to open ssh connection on linux


This tutorial will show you how to open SSH connection on Linux directly on the console, so you don’t need to rely on third party software like Putty.

I’ve seen quite a few people relying on a Putty installation on Ubuntu and/or CentOS to access a remote server through SSH, but despite how good I think Putty is, its usage is far from necessary when you are on a Linux environment.

Read More »Open SSH connection on Linux

Enable MySQL Remote Access

This tutorial will show how to enable MySQL remote access in order to make it accept connections from the network instead of just local connections.

The Problem

A fresh MySQL installation has its remote access disabled by default for security reasons, however, it can be enabled by taking a few simple steps.
It is important to mention that the following solution was tested against CentOS 7.2, but it’s very likely to work on other Linux versions and/or distributions.
I am going straight to the solution to make your MySQL avaiable for remote access, but you can find a detailed explanation at the end of this post.

Read More »Enable MySQL Remote Access