Add host to Docker Container

16 Views Asked by At

I am runnig Keycloak on a container with the default image of keycloak. I am trying to add a host to the /etc/hosts file but it is imposible. I want to change the localhost DN to ldap.demo.local Editing file from Docker Desktop container

I have also tried to edit the file from the Docker container terminal with vi and nano commands but none of that commands are recognized...

Trying to edit file from de terminal

What should I do? I need to edit this file...

Thank you in advanced!

0

There are 0 best solutions below