Skip to content

Instantly share code, notes, and snippets.

View skywalker-nick's full-sized avatar
👀

Nick Ma skywalker-nick

👀
View GitHub Profile
@skywalker-nick
skywalker-nick / rabbitmq.txt
Created April 28, 2018 09:17 — forked from sdieunidou/rabbitmq.txt
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
@skywalker-nick
skywalker-nick / remove-docker-containers.md
Last active November 4, 2016 09:42 — forked from ngpestelos/remove-docker-containers.md
How to remove unused Docker containers and images
  1. Delete all containers

     $ docker ps -q -a | xargs docker rm -f
    

-q prints only the container IDs -a prints all containers

Notice that it uses xargs to issue a remove container command for each container ID

  1. Delete all untagged images