DOCKER_API_VERSION not updating

I am new to dockers and also to this forum so any tips regarding posting the question on the wrong way or using the wrong tags are welcome.

Currently I am working on a server that the non root user is running on a different docker client version that the root user.

Sample below:

-bash-4.2$ sudo docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Fri Mar 24 00:36:45 2017
OS/Arch: linux/amd64

Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Fri Mar 24 00:36:45 2017
OS/Arch: linux/amd64
Experimental: false

-bash-4.2$ sudo su

[root@hostname]# docker version
Client:
Version: 17.03.1-ce
API version: 1.24 (downgraded from 1.27)
Go version: go1.7.5
Git commit: c6d412e
Built: Fri Mar 24 00:36:45 2017
OS/Arch: linux/amd64

Server:
Version: swarm/1.2.4
API version: 1.22 (minimum version )
Go version: go1.5.4
Git commit: 5d5f7f0
Built: Thu Jul 28 19:52:54 UTC 2016
OS/Arch: linux/amd64
Experimental: false

I tried to update the client through the following command:

export DOCKER_API_VERSION=1.27

Unfortunately I do not get any errors or warning indications as a second step to continue investigation, but at the same time is not updating as well.

Theoretically the command should work as documented also in the Use the Docker command line (official documentation).

I also noticed that the git commit on the root docker server is different than the non root user docker server:

Git commit: 5d5f7f0

Does this makes sense? Again apologies if this is something normal as I am new to dockers I am having difficulties to understand the incompatibilities.

I found many similar topics and everyone is commenting that is working but in my case it is not.

I also came across with DOCKER_API_VERSION no longer works with docker-17.09.0-ce #2128. Does this mean that also older versions where affected?

According to the commends of the post " docker-17.06.2-ce" seems to be working fine.

Any idea as of why this is happening (non root user and root user) different API versions and how to fix it?