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 Tue Dec 11 11:15:10 EST 2018 by Subhash Chandran
docker