Krishna Kumar
- GHC 8.0.1
- Cabal 1.24
- GCC 6
- Node 6.3.1
- To build an image from docker file run as root
docker build -t "cbgeo/ca-abm:latest" /path/to/Dockerfile
docker history
will show you the effect of each command has on the overall size of the file.
- The docker image can be used directly from the Docker Hub or Quay.io
- Pull the docker image
docker pull cbgeo/ca-abm
ordocker pull quay.io/cbgeo/ca-abm
- To launch the
cbgeo/ca-abm
docker container, rundocker run -ti cbgeo/ca-abm:latest /bin/bash
ordocker run -ti quay.io/cbgeo/ca-abm:latest /bin/bash
docker run -ti -v /home/<user>/<mounted-folder>/:/<path-in-container> cbgeo/ca-abm:latest /bin/bash
- To connect to a particular port (for e.g., 3000) in docker container to port
3000
in localhost:docker run -ti -p 3000:3000 cbgeo/ca-abm