...
Questions
What is the difference between the 10001 and 10003 port versions for nexus3?
...
Docker Run
Docker Pull
Check your login first
...
root@obriensystemskub0:~/oom/kubernetes/dcae/pgaas# export DOCKER_ID_USER="obrienlabs" root@obriensystemskub0:~/oom/kubernetes/dcae/pgaas# docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username: obrienlabs Password: Login Succeeded root@obriensystemskub0:~/oom/kubernetes/dcae/pgaas# docker build -t obrienlabs/pgaas -f Dockerfile . Sending build context to Docker daemon 23.55 kB Step 1 : FROM ubuntu:16.04 ---> d355ed3537e9 .... Successfully built 257430a38254 root@obriensystemskub0:~/oom/kubernetes/dcae/pgaas# docker tag obrienlabs/pgaas obrienlabs/pgaas:1 root@obriensystemskub0:~/oom/kubernetes/dcae/pgaas# docker push obrienlabs/pgaas:1 The push refers to a repository [docker.io/obrienlabs/pgaas] ee716c896001: Pushed ....5a4c2c9a24fc: Pushed cb11ba605400: Pushed 1: digest: sha256:fb09855b323fe83aaa161725910cd2f6d7ff6306035e6f5f2df40b99149e8fed size: 6157 pull on separate machine obrienbiometrics:oom michaelobrien$ docker pull obrienlabs/pgaas:1 1: Pulling from obrienlabs/pgaas 23a6960fe4a9: Extracting [===> ] 3.441MB/45.89MB e9e104b0e69d: Download complete cd33d2ea7970: Download complete 534ff7b7d120: Download complete: Download complete cd33d2ea7970: Download complete 534ff7b7d120: Download complete |
---|
Docker save/load
TODO: document - use case for a bulk preload pull of docker images to pass to machines that are behind a firewall where the 10001 port of nexus3.onap.org is inaccessible
Thanks Mohsen Ansari
Docker cleanup
Stop all containers
docker stop $(docker ps -a -q)
Remove all containers
docker rm $(docker ps -a -f status=exited -q)
Remove all images
Code Block |
---|
docker rmi $(docker images -a -q) --force |
Remove all volumes
docker volume rm $(docker volume ls)
ONAP nexus3
We cannot push directly to nexus3 - we need to do a staged release - Jira Legacy server System Jira serverId 4733707d-2057-3a0f-ae5e-4fd8aff50176 key CIMAN-22
...
Code Block |
---|
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5432 |
List Docker Mounts
Example retrieving docker mounts for the CDAP Collector VM
Code Block |
---|
root@zldciad4vicoll00:~# df Filesystem 1K-blocks Used Available Use% Mounted on none 41251136 5354876 34097432 14% /opt/app/docker/data/aufs/mnt/14a5fd911ae442f1041a51f05d760dcd75969f455e6e6471e5f62eb102e400ff shm 65536 0 65536 0% /opt/app/docker/data/containers/98bdea201c182d68f95e814a0f9b8667e3cd38e6017fb632368b995920bda825/shm none 41251136 5354876 34097432 14% /opt/app/docker/data/aufs/mnt/86e5d7ccec8b8cb80d934baa0259c1aa582526495fb4fa004afe6f49e0cde3ec shm 65536 0 65536 0% /opt/app/docker/data/containers/c12cf4f98007316e0ed9f11bf70ebf2db8969e1a2426a65144f023d7db477131/shm none 41251136 5354876 34097432 14% /opt/app/docker/data/aufs/mnt/03e8aaf09316cda6a17063b6ae6d0ecfc0e6c1420a804f627d895f1b3305b803 shm 65536 0 65536 0% /opt/app/docker/data/containers/5d5fb7726fb34150b5a188570bcb10359e254d68161f7b545936e5ed8980e047/shm none 41251136 5354876 34097432 14% /opt/app/docker/data/aufs/mnt/4bd2a7e73e86618a5c547d33758a9d7c9e402b4db108b823614a0319b320e62b shm 65536 0 65536 0% /opt/app/docker/data/containers/53bba60de57d924780913f75e4ca815c83a7c7e51e890b661df3f70b818d283d/shm none 41251136 5354876 34097432 14% /opt/app/docker/data/aufs/mnt/e01ab748cc467704e874f7240b72bfc26e85e10897fae565028bb66189e31683 shm 65536 0 65536 0% /opt/app/docker/data/containers/72956fb48e80ad39c56d30e181e22e42865723f265eefd1975d31cb182bef416/shm root@zldciad4vicoll00:~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 72956fb48e80 nexus3.onap.org:10001/openecomp/dcae-collector-common-event:1.0-STAGING-latest "/opt/app/manager/..." 20 hours ago Up 20 hours 0.0.0.0:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:32768->9999/tcp dcae_docker-common-event_iad4 53bba60de57d nexus3.onap.org:10001/openecomp/dcae-dmaapbc:1.0-STAGING-latest "./bin/dmaapbc deploy" 20 hours ago Up 20 hours 0.0.0.0:18080->8080/tcp, 0.0.0.0:18443->8443/tcp dcae_docker-databus-controller_iad4 5d5fb7726fb3 attos/dmaap "/bin/sh -c ./star..." 21 hours ago Up 21 hours 0.0.0.0:3904-3905->3904-3905/tcp dockerfiles_dmaap_1 c12cf4f98007 wurstmeister/zookeeper "/bin/sh -c '/usr/..." 21 hours ago Up 21 hours 22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp dockerfiles_zookeeper_1 98bdea201c18 dockerfiles_kafka "start-kafka.sh" 21 hours ago Up 21 hours 0.0.0.0:9092->9092/tcp dockerfiles_kafka_1 root@zldciad4vicoll00:~# docker inspect -f '{{ .Mounts }}' 98bdea201c18 [{bind /opt/app/message-router/docker_files/start-kafka.sh /start-kafka.sh rw true } {bind /var/run/docker.sock /var/run/docker.sock rw true } {bind /opt/app/message-router/docker_files/data-kafka /kafka rw true }] root@zldciad4vicoll00:~# docker inspect -f '{{ .Mounts }}' c12cf4f98007 [{bind /opt/app/message-router/docker_files/data-zookeeper /opt/zookeeper-3.4.9/data rw true } {volume 786f3819c8cfee7ff5a2d22fc644563d78b550fb05977573ea663550f2356f43 /opt/app/docker/data/volumes/786f3819c8cfee7ff5a2d22fc644563d78b550fb05977573ea663550f2356f43/_data /opt/zookeeper-3.4.9/conf local true }] root@zldciad4vicoll00:~# docker inspect -f '{{ .Mounts }}' 5d5fb7726fb3 [{bind /opt/app/message-router/docker_files/MsgRtrApi.properties /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties rw true } {bind /opt/app/message-router/docker_files/mykey /appl/dmaapMR1/etc/keyfile rw true } {bind /opt/app/message-router/docker_files/cadi.properties /appl/dmaapMR1/etc/cadi.properties rw true }] root@zldciad4vicoll00:~# docker inspect -f '{{ .Mounts }}' 53bba60de57d [{volume 6f8c7044b305bf02c8d0cdf7656e0d1bd446ef0799c825387ee2a7ec0b322c35 /opt/app/docker/data/volumes/6f8c7044b305bf02c8d0cdf7656e0d1bd446ef0799c825387ee2a7ec0b322c35/_data /opt/app/dmaapbc/log local true } {bind /var/log/DCAE/docker-databus-controller/iad4/manager /opt/app/logs true } {bind /var/config/DCAE/docker-databus-controller/iad4/manager /opt/app/config true } {bind /opt/app/dcae-certificate /opt/app/dcae-certificate true } {bind /opt/app/groovy /opt/app/groovy true } {bind /etc/hosts /opt/app/etc/hosts true }] root@zldciad4vicoll00:~# docker inspect -f '{{ .Mounts }}' 72956fb48e80 [{bind /var/log/DCAE/docker-common-event/iad4/app /opt/app/SEC/logs true } {bind /var/log/DCAE/docker-common-event/iad4/manager /opt/app/manager/logs true } {bind /var/config/DCAE/docker-common-event/iad4/manager /opt/app/manager/config true } {bind /opt/app/dcae-certificate /opt/app/dcae-certificate true } {bind /opt/app/groovy /opt/app/groovy true }] |
Docker fails to start on OSX
https://github.com/docker/for-mac/issues/989
reset to defaults
Links
View docker images (don't sign in)
...