Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.13 KB

docker.md

File metadata and controls

56 lines (38 loc) · 1.13 KB

Docker

Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime. Using Docker, you can quickly deploy and scale applications into any environment and know your code will run.

Contents

Build

Building an image from Dockerfile

docker build -t app_name:1.0 .

List all images

docker images

Run

Run docker image

docker run -p 8001:8001 -it  app_name:1.0

List all running containers

docker ps

Kill a running container

docker kill container_name/ container_id 

Prune

docker system prune     # prune all docker resources
docker system prune -f  # prune all resources with force (without prompt)

Attributes