Overview#

This page describes the process to run IPA in Docker container. It assumes that Docker is already installed.

Pulling IPA Container#

$ docker pull freeipa/freeipa-server

Building IPA Container#

Checkout freeipa-container repository:

$ git clone https://github.com/freeipa/freeipa-container.git

To build IPA container:

$ docker build -t freeipa-server -f Dockerfile.fedora-26 .

Running IPA Container#

To create IPA container:

$ mkdir /var/lib/ipa-data
$ setsebool -P container_manage_cgroup 1
$ docker run --name freeipa-server-container -ti \
   -h ipa.example.test \
   -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
   --tmpfs /run --tmpfs /tmp \
   -v /var/lib/ipa-data:/data:Z freeipa-server

To stop IPA container:

$ docker stop freeipa-server-container

To restart IPA container:

$ docker start -ai freeipa-server-container

Attaching to IPA Container#

To attach to IPA container:

$ docker attach freeipa-server-container

To detach, press Ctrl-PQ.

References#