Guide to simple commands to use the docker#
- start docker in a centOS/Linux machine
sudo service docker start
- make sure dicker is up an running
docker info
- list the docker images saved on the machine
docker images
- remove an image (e.g. old and unused version, they can be of huge size)
docker rmi [--force] 'IMAGE_ID'
- retrieve a docker image form the docker hub
docker pull poldracklab/fmriprep:20.1.2
- show running containers
docker ps
- enter a running image
docker exec -it CONTAINER_ID bash
- stop a running image
docker stop CONTAINER_ID