#start docker with interact mode
docker run -t -i ubuntu /bin/bash
#remove all containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
#remove all images
docker rmi $(docker images -q)
URL: https://docs.docker.com/userguide/dockervolumes/
docker run -i -t -v /data/okapi:/home/okapi/data canadatom/okapi-docker-file /bin/bash
ctrl+d
docker ps -a
docker start [container_id]
docker attach [container_id]
docker ps | tail -n +2 | while read -a a; do name=${a[$((${#a[@]}-1))]}; echo -ne "$name\t"; docker inspect $name | grep IPAddress | cut -d \" -f 4; done
docker ps | tail -n +2 | while read -a a; do name=${a[$((${#a[@]}-1))]}; echo -ne "$name\t"; docker inspect $name | grep sha | cut -d \" -f 4 | awk -F "@" '{print $2}'; done