Skip to content

Instantly share code, notes, and snippets.

@innyso
innyso / docker_remove_all_containers.md
Last active May 9, 2020 11:55
#docker #cmd #containers #remove

Remove all docker containers

docker ps -a | sed '1d' | awk '{print $1}' | xargs docker rm
@innyso
innyso / docker_remove_all_none_images.md
Last active May 9, 2020 11:54
#docker #cmd #remove #images

Remove all images

docker images | grep "<none>" | awk '{print $3}' | xargs docker rmi
@innyso
innyso / puppet_create_resource_checklist.md
Last active December 23, 2015 11:56
puppet create_resources checklist
  1. make sure the hiera value has the following structure
users:
  mary:
    group: admin
    alias: m123
  mark:
    group: user
    alias: m456
@innyso
innyso / linux_check_user_exist.md
Last active May 3, 2020 12:10
#linux #cmd #usermangement

check user exist

id <username>

or

grep /etc/passwd

@innyso
innyso / docker-machine-tls.md
Last active December 21, 2015 01:11
Enable tls for docker-machine