-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
alex [dot] kramer [at] g_m_a_i_l [dot] com edited this page Jun 26, 2018
·
15 revisions
List all containers:
docker ps -aList running containers by name or id:
docker ps --format "{{.Names}}" # name
docker ps -q # idDelete:
docker rm [CONTAINER NAME/ID]List:
docker imagesInspect:
docker inspect [IMAGE NAME]History:
Build, skip cache, with name and tag:
```bash
docker build --no-cache -t [NAME]:[TAG] [PATH TO DOCKERFILE]
Backgrounded with mapped port (necessary for OSX)
docker run -d -p [HOST PORT]:[CONTAINER PORT] [IMAGE NAME]