Docker fun

root@m2-kolla-deploy:~# curl -X GET https://localhost/v2/_catalog?n=2000 -k
{"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"]}
root@m2-kolla-deploy:~# curl -X GET https://localhost/v2/kolla/ubuntu-binary-fluentd/tags/list -k
{"name":"kolla/ubuntu-binary-fluentd","tags":["5.0.0"]}

Working with self signed certificates? Add this.

root@m2-kolla-control01:/etc/docker/certs.d/m2-kolla-deploy:443# cat /etc/docker/daemon.json
{ "insecure-registries":["m2-kolla-deploy:443"] }
root@m2-kolla-control01:/etc/docker/certs.d/m2-kolla-deploy:443#

 

 

root@m2-kolla-control01:/etc/docker/certs.d/m2-kolla-deploy:443# ll
total 16
drwxr-xr-x 2 root root 4096 Dec 11 15:26 ./
drwxr-xr-x 3 root root 4096 Dec 11 15:25 ../
-rw-r--r-- 1 root root 757 Dec 11 15:26 client.cert
-rw-r--r-- 1 root root 887 Dec 11 15:26 client.key

 

Delete all images

docker stop $(docker ps -a -q)

docker rm $(docker ps -a -q)

 

Get a bash prompt in running container

sudo docker exec -i -t mariadb /bin/bash

 

Watch console of a container

docker logs -t -f dockerstuff_scriptrunner_1

 

Attach to running container

docker exec -i -t dockerstuff_php_1 /bin/bash

 

Check port mapping

docker port dockerstuff_maint_1 22