Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 857 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 857 Bytes

Custom Dockerfile for Daily Usage Container

This repository is full of Dockefiles which helps you to perform day to day operation using containers.

Netshoot Container Build Status

Image Management

Build Image

docker build -t <image:tag> .

List Images

docker images -a
docker images -f dangling=true

Remove Images

docker rmi <image>
docker images purge
docker images -a | grep "pattern" | awk '{print $3}' | xargs docker rmi

Remove Containers

docker ps -a  #List
docker rm $(docker ps -a -f status=exited -q)

Stop Container

docker stop $(docker ps -a -q)

One Shot

docker system prune