..

Docker commands

  1. Inspect image directory structure

inspect image directory structure

  1. Replace ENTRYPOINT / CMD command with
    ENTRYPOINT ["sleep", "3600"]
  2. Build image
  3. Start container, get the container-id and exec shell/bash
    docker build . -f dev.Dockerfile -t test docker run test:latest docker container ls docker exec -it 12c23fad6baf sh # or bash