Docker image to provide the NSCD service.
- The image only comes with the software and the default configuration file;
- It should be used in combination with Helm charts (or similar tools for container configuration) to create the custom configuration;
- The default command is
/usr/sbin/nscd --foreground
- It is possible to export the nscd socket once the process is running;
- To do so, mount
/run/nscd
as volume; - Other containers can mount it with the option
--volumes-from <nscd_server_name>
.
- Typically,
nscd
andnslcd
are used to access LDAP in order to retrieve information on user accounts; - In a traditional environment, the two services run on the host machine as system daemons. In the world of containers,
nscd
andnslcd
run in two dedicated containers; - To allow LDAP access to a third container, proceed as follows:
nslcd
: Export thenslcd
socket to a volume;nscd
: Mount the volume with thenslcd
socket into thenscd
container;nscd
: Export thenscd
socket to a volume;other containers
: Mount the volume with thenscd
socket.