Docker run bash of a container-image


docker run -it -v $PWD:/build -w /build snapcore/snapcraft --entrypoint /bin/bash

The options mean:

  1. -i: interactive.
  2. -t: allocate pseudo-tty.
  3. -v: volume mount.
  4. -w: work dir inside the container.
Posted on December 11, 2018 11:15 AM by Subhash Chandran
docker