Page tree
  1. View images

    docker images
  2. Pull images

    docker pull centos:7
    docker pull yakser/simex:demo
  3. Run an image. Default = root

    docker run centos:7 whoami
    docker run centos:7 id
  4. Run an image as user

    docker run -u `id -u`:`id -g` centos:7 id
    docker run -u `id -u`:`id -g` centos:7 whoami
  5. Run SIMEX image - python as entrypoint

    docker run -it -u `id -u`:`id -g` yakser/simex:devel
    >>> help("SimEx")
  6. Replace entrypoint, look at the script

    docker run -it -u `id -u`:`id -g` --entrypoint="" yakser/simex:demo cat test.py
  7. Run SIMEX test

    docker run -it -u `id -u`:`id -g` yakser/simex:demo test.py
  8. Mount directory, run test

    docker run -it -u `id -u`:`id -g` -v `pwd`:/pmi yakser/simex:demo test.py
    ls -la pmi_out_0000001.h5
  • No labels