Git and Linux commands

Linux 

Remove recursively:

rm -rf .git 

read text file 

cat filename.txt

 sudo docker image prune --all

Images that are not associated with containers

docker image prune -a

docker image prune -a --filter "until=12h"

Shell into a docker container 

docker exec container_name sh -c ""
Remove a docker image
docker rmi imageid

Docker run image inside a container with env file
docker run --env-file ./backend/.envs/.production/.postgres --name heroku -e "PORT=8765" -e "DEBUG=1" -p 8007:8765 heroku-app:latest

Commentaires

Posts les plus consultés de ce blog

Kubectl Commands

HMS Interface Translation