version: '2'
services:
  dtk_dev:
    image: dalg24/dtk-stack:trilinos-12.10.1
    volumes:
      - ..:/scratch/source/trilinos/12.10.1/DataTransferKit
    environment:
      - TRILINOS_DIR=/scratch/source/trilinos/12.10.1
      - TERM=xterm
    container_name: dtk_dev
    command: tail -f /dev/null
    # Turn off seccomp confinement to work with gdb.
    #
    # Without passing the `--security-option` flag to docker, running gdb would
    # yield this:
    # warning: Error disabling address space randomization: Operation not permitted
    #
    # NOTE: At this time not sure if it wouldn't be possible to alter the
    # default seccomp security profile for Docker rather than fully turning it
    # off.  See https://github.com/docker/docker/blob/master/docs/security/seccomp.md
    # for reference.
    security_opt:
      - seccomp:unconfined

version: '2'
services:
  dtk_dev:
    image: dalg24/dtk-stack:trilinos-12.10.1
    volumes:
      - ..:/scratch/source/trilinos/12.10.1/DataTransferKit
    environment:
      - TRILINOS_DIR=/scratch/source/trilinos/12.10.1
      - TERM=xterm
    # Append user name to the container name.  Specifying a container name
    # implies that there can only be one instance running at the same time on
    # the Docker daemon (per user).
    container_name: dtk_dev_$USER
    command: tail -f /dev/null
    # Turn off seccomp confinement to work with gdb.
    #
    # Without passing the `--security-option` flag to docker, running gdb would
    # yield this:
    # warning: Error disabling address space randomization: Operation not permitted
    #
    # NOTE: At this time not sure if it wouldn't be possible to alter the
    # default seccomp security profile for Docker rather than fully turning it
    # off.  See https://github.com/docker/docker/blob/master/docs/security/seccomp.md
    # for reference.
    security_opt:
      - seccomp:unconfined

Append username to container to avoid stepping on each other feet
Append username to container to avoid stepping on each other feet
