Languages
[Edit]
EN

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

4 points
Created by:
Brett4
465

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

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

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