Get started
Last updated
Last updated
To clone the LAMMPS container: docker pull cbgeo/lammps:latest
. The tag latest
is not required. This clones the cbgeo/lammps
container from the .
docker pull cbgeo/lammps
To launch the cbgeo/lammps
docker container, run docker run -ti cbgeo/lammps:latest /bin/bash
Once logged in you can run /opt/lammps/src/lmp_serial -i /opt/lammps/examples/granregion/in.granregion.mixer
docker run -ti -v /home/<user>/<mounted-folder>/:/<path-in-container> cbgeo/lammps:latest
Users running Linux distributions with SELinux enabled (Redhat, CentOS, Fedora, and others) will need to add the :z
option to all subsequent host volume mounts -v
, e.g.: docker run -it -v $(pwd):/home/cbgeo/research/lem-shared/:z quay.io/cbgeo/lem:latest /bin/bash.
docker exec -ti <containerid> /bin/bash
docker start <containerid>
docker stop <containerid>
docker rm <containerid>
, stop the container before deleting it.
To delete all docker containers docker rm $(docker ps -a -q)
Launching docker as root user: docker exec -u 0 -ti <containerid> /bin/bash
Let's run the tensor flow container docker run -ti tensorflow/tensorflow
.
However, when we ran it the host and the container ports are not bound.
To connect to a particular port (for e.g., 8888) in docker container to port 8888
in localhost: docker run -ti -p 8888:8888 tensorflow/tensorflow