Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. View images

    Code Block
    languagebash
    themeEclipse
    $ docker images


  2. Pull images

    Code Block
    languagebash
    themeEclipse
    $ docker pull centos:7
    $ docker pull yakser/simex:demo


  3. Run an image. Default = root

    Code Block
    languagebash
    themeEclipse
    $ docker run centos:7 whoami
    $ docker run centos:7 id



  4. Run an image as user

    Code Block
    languagebash
    themeEclipse
    $ 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

    Code Block
    languagebash
    themeEclipse
    $ docker run -it -u `id -u`:`id -g` yakser/simex:devel
    >>> help("SimEx")


  6. Replace entrypoint, look at the script

    Code Block
    languagebash
    themeEclipse
    $ docker run -it -u `id -u`:`id -g` --entrypoint="" yakser/simex:demo cat test.py


  7. Run SIMEX test

    Code Block
    languagebash
    themeEclipse
    $ docker run -it -u `id -u`:`id -g` yakser/simex:demo test.py


  8. Mount directory, run test

    Code Block
    languagebash
    themeEclipse
    $ docker run -it -u `id -u`:`id -g` -v `pwd`:/pmi yakser/simex:demo test.py
    $ ls -la pmi_out_0000001.h5