Docker fun
1root@m2-kolla-deploy:~# curl -X GET https://localhost/v2/_catalog?n=2000 -k
2{"repositories":["kolla/ubuntu-binary-barbican-base","kolla/ubuntu-binary-barbican-keystone-listener","kolla/ubuntu-binary-base","kolla/ubuntu-binary-fluentd","kolla/ubuntu-binary-keystone","kolla/ubuntu-binary-keystone-base","kolla/ubuntu-binary-keystone-fernet","kolla/ubuntu-binary-keystone-ssh","kolla/ubuntu-binary-openstack-base"]}
3root@m2-kolla-deploy:~# curl -X GET https://localhost/v2/kolla/ubuntu-binary-fluentd/tags/list -k
4{"name":"kolla/ubuntu-binary-fluentd","tags":["5.0.0"]}
Working with self signed certificates? Add this.
1root@m2-kolla-control01:/etc/docker/certs.d/m2-kolla-deploy:443# cat /etc/docker/daemon.json
2 { "insecure-registries":["m2-kolla-deploy:443"] }
3 root@m2-kolla-control01:/etc/docker/certs.d/m2-kolla-deploy:443#
1root@m2-kolla-control01:/etc/docker/certs.d/m2-kolla-deploy:443# ll
2total 16
3drwxr-xr-x 2 root root 4096 Dec 11 15:26 ./
4drwxr-xr-x 3 root root 4096 Dec 11 15:25 ../
5-rw-r--r-- 1 root root 757 Dec 11 15:26 client.cert
6-rw-r--r-- 1 root root 887 Dec 11 15:26 client.key
Delete all images
1docker stop $(docker ps -a -q)
2docker rm $(docker ps -a -q)
Get a bash prompt in running container
1sudo docker exec -i -t mariadb /bin/bash
Watch console of a container
1docker logs -t -f dockerstuff_scriptrunner_1
Attach to running container
1docker exec -i -t dockerstuff_php_1 /bin/bash
Check port mapping
1docker port dockerstuff_maint_1 22