Setting Ubuntu containers in CoreOS

This section contains information on the following topics:

Setting up an Ubuntu container with DirectControl

To create and run an Ubuntu container and enable DirectControl functionality inside the container:

  1. Copy the files dockerfile.ubuntu.dc and ubuntu_startup.sh to ~/sandbox
  2. Edit the file dockerfile.ubuntu.dc:
  3. Replace $CENTRIFY_REPOSITORY_KEY by your Centrify support repository credential.
  4. Replace $ROOT_PASSWORD by the password of the root user in the container
  5. Run this command to build the docker image:

    docker build -t "ubuntu:dc" -f ~/sandbox/dockerfile.ubuntu.dc . 

    (note the period as the last parameter)

  6. Run this command to run the docker image:

    docker run -d -p $SSHD_PORT:22 -v /var/centrifydc:/var/centrifydc 
    ubuntu:dc

    Replace $SSHD_PORT by the port to be used for sshd service for this container.

    Note:   If rsyslog cannot be started, you may need to add "--security-opt seccomp:unconfined" to the docker run command line

Setting up an Ubuntu container with both DirectControl and DirectAudit

To create a Ubuntu container and enable DirectControl and DirectAudit functionality inside the container:

  1. Copy the files dockerfile.ubuntu.dcda and ubuntu_startup.sh to ~/sandbox.
  2. Edit the file dockerfile.ubuntu.dcda:

    • Replace $CENTRIFY_REPOSITORY_KEY by your Centrify support repository credential.
    • Replace $ROOT_PASSWORD by the password intended for root in the container
  3. Run this command to build the docker image:

    docker build -t "ubuntu:da" -f ~/sandbox/dockerfile.ubuntu.dcda . 

    (note the period as the last parameter)

  4. Run this command to run the docker image:

    docker run -d -p $SSHD_PORT:22 -v /var/centrifydc:/var/centrifydc -v /var/centrifyda:/var/centrifyda ubuntu:da

    Replace $SSHD_PORT by the port to be used for sshd service for this container

    Note:   If rsyslog cannot be started, you may need to add "--security-opt seccomp:unconfined" to the docker run command line