This container setup a single instance of MIT Kerberos Server
Create a docker-compose.yml file like this one:
version: '3.6'
services:
kerberos:
image: jairsjunior/kerberos-docker
ports:
- 88:88
hostname: kerberos
container_name: kerberos
environment:
- REALM=KERBEROS.KERBEROS-DOCKER_DEFAULT
- DOMAIN_REALM=kerberos.kerberos-docker_default
- KERB_MASTER_KEY=masterkey
- KERB_ADMIN_USER=admin
- KERB_ADMIN_PASS=admin
- SEARCH_DOMAINS=search.consul kerberos.kerberos-docker_default
volumes:
- ./kerberos-data:/volumes/kerberos
- ./kerberos-keytabs:/volumes/keytabs
- ./kerberos-users:/volumes/users
At volume folder kerberos-users
you can add a users.csv file that will create all the users
on that file if the keytab file aren't exists.
username,hostname,keytab_filename,password
If you send password keytab file will not be generated
users.csv file example
kafka,broker,kafka_broker
kafka,zookeeper,kafka_client1
kafka,schema-registry,kafka_schema-registry
kafka,rest-proxy,,test
Based on sequenceiq/docker-kerberos image