Skip to content

Instantly share code, notes, and snippets.

@isaldin
Last active January 14, 2020 12:16
Show Gist options
  • Save isaldin/6c404676b358d7e64cc903c1c04ffe13 to your computer and use it in GitHub Desktop.
Save isaldin/6c404676b358d7e64cc903c1c04ffe13 to your computer and use it in GitHub Desktop.

show disk usage df -h

who is listening ports lsof -i -P -n | grep LISTEN

docker

remove intermediate/unused images docker rmi $(docker images -f dangling=true -q --no-trunc) -f

attach to running container docker container attach <container-id>

login to docker hub docker login --username=username

push image to repo docker push ima/ge:tag

run image as daemon with restart policy docker run -d -p 80:80 --restart=always ima/ge:tag

run shell on running container docker exec -it container-id sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment