Skip to content

Instantly share code, notes, and snippets.

dvilelaf /
Last active July 15, 2021 12:35
Docker/Kubernetes cheatsheet



  • docker image ls
  • docker image ls -a
  • docker pull <dockerhub_user>/<dockerhub_image>:<dockerhub_tag>
  • docker push <dockerhub_user>/<dockerhub_image>:<dockerhub_tag>
  • docker image rm <name> [--force]
  • docker rmi $(docker images -q) # rm all images
  • docker rmi $(docker images --quiet --filter=dangling=true) # rm dangling images (tagged as <none>)
dvilelaf / ambient.c
Created June 14, 2021 07:51 — forked from tomix86/ambient.c
Set ambient capabilities
View ambient.c
* Test program for the ambient capabilities
* You need to install libcap-ng-dev first, then compile using:
* $ gcc -o ambient ambient.c -lcap-ng && sudo setcap cap_setpcap,cap_net_raw,cap_net_admin,cap_sys_nice+eip ambient
* To get a shell with additional caps that can be inherited do:
* ./ambient /bin/bash

Keybase proof

I hereby claim:

  • I am dvilelaf on github.
  • I am dvilela ( on keybase.
  • I have a public key ASA-FilDqFcv-N_EQfW10NbsbPqcFaNaI4JJpM0P4mFoqAo

To claim this, I am signing this object: