1

I am trying to use Jenkins Docker plugin. Unfortunately I am not able to run Docker on RHEL to listen on a specific port yet.

I know I have to add:

DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock"

But in my RHEL installation dont find the /etc/init/docker.conf file.

So which file to modify?

Exploring
  • 2,493
  • 11
  • 56
  • 97

1 Answers1

1

Try to edit /etc/systemd/system/docker.service like below.

ExecStart=/usr/bin/docker -H fd:// -H 0.0.0.0:4243 -d
nacyot
  • 3,312
  • 1
  • 17
  • 10