Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 477 Bytes

Docker.md

File metadata and controls

23 lines (18 loc) · 477 Bytes

Docker

1 Docker run interactive

#!/bin/bash

docker run -it <image_id> bash

Where bash could be bash, /bin/bash or something equivalence.

2 Purging All Unused or Dangling Images, Containers, Volumes, and Networks

#!/bin/bash

docker system prune -a

3 Pull image from AWS ECR

#!/bin/bash

aws ecr get-login

Then copy the response and run in shell. Then use docker pull <image url in ecr> directly.