Languages
[Edit]
EN

Docker - export docker sock - export DOCKER_HOST=unix:///var/run/docker.sock

4 points
Created by:
Marcin
18790

Quick solution:

[root@localhost]# export DOCKER_HOST=unix:///var/run/docker.sock

Restart docker:

[root@localhost]# service docker restart
Redirecting to /bin/systemctl restart docker.service

Run mvn:

[root@localhost]# mvn clean install -Dmaven.test.skip=true

.....

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.117s
[INFO] Finished at: Tue Sep 29 04:06:44 EDT 2020
[INFO] Final Memory: 50M/633M
[INFO] ------------------------------------------------------------------------

Common problems

See also

Docker - useful wiki posts

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join