NIS in docker ubuntu 22.04
I’ve a docker image based FROM ubuntu:18.04
At the end of the image, I’ve:
# Configure NIS
COPY yp.conf /etc/yp.conf
COPY nsswitch.conf /etc/nsswitch.conf
COPY default-nis /etc/default/nis
COPY common-session /etc/pam.
RUN echo 'mobileye' > /etc/defaultdomain
RUN /etc/init.d/rpcbind restart
RUN /etc/init.d/nis restart
All is fine and I can see in the build output:
Step 53/55 : RUN /etc/init.d/nis restart
---> Running in 0fe8684241e3
* Stopping NIS services
...done.
* Starting NIS services
* binding to YP server...
* ....
* ....
* ....
* ....
* ....
* ....
* ....
* ....
* ....
* ....
...fail!
...done.
However, when migrating to FROM ubuntu:22.04, the /etc/init.d/nis doesn’t exists
I’ve tried to replace it with:
• RUN /etc/init.d/ypxfrd restart
• RUN /etc/init.d/ypbind restart
• RUN /etc/init.d/ypbind reload
• …
but nothing helped to have my ypclient binded to my ypserver
Any help / external link / other will be greatly appreciated.
Thanks a lot
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu nis Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Michael Fitoussi
- Solved:
- Last query:
- Last reply: