Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Procedures for pulling/creating/updating/pushing Docker images.

Docker Pull

Check your login first

$docker login -u docker -p docker nexus3.onap.org:10001

Login Succeeded

Docker Exec

root@vm1-aai-inst1:~# docker ps -a

CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                                NAMES

a0b610740d68        nexus3.onap.org:10001/openecomp/data-router           "/opt/app/data-rou..."   15 hours ago        Up 15 hours         0.0.0.0:9502->9502/tcp                               testconfig_datarouter_1

90b36b769927        nexus3.onap.org:10001/openecomp/search-data-service   "/opt/app/search-d..."   15 hours ago        Up 15 hours         0.0.0.0:9509->9509/tcp                               testconfig_aai.searchservice.simpledemo.openecomp.org_1

b347cb91e6c2        nexus3.onap.org:10001/openecomp/model-loader          "/opt/app/model-lo..."   15 hours ago        Up 15 hours                                                              testconfig_model-loader_1

0dca1d420750        aaionap/haproxy                                       "/docker-entrypoin..."   15 hours ago        Up 15 hours         0.0.0.0:8443->8443/tcp                               testconfig_aai.api.simpledemo.openecomp.org_1

cf82f991a05b        nexus3.onap.org:10001/openecomp/aai-traversal         "/bin/sh -c ./dock..."   15 hours ago        Up 15 hours         0.0.0.0:8446->8446/tcp                               testconfig_aai-traversal.api.simpledemo.openecomp.org_1

b3284622c0aa        nexus3.onap.org:10001/openecomp/aai-resources         "/bin/sh -c ./dock..."   15 hours ago        Up 15 hours         0.0.0.0:8447->8447/tcp                               testconfig_aai-resources.api.simpledemo.openecomp.org_1

245da2cf6bb8        nexus3.onap.org:10001/openecomp/sparky-be             "/bin/sh -c /opt/a..."   15 hours ago        Up 15 hours         8000/tcp, 0.0.0.0:9517->9517/tcp                     testconfig_sparky-be_1

ca140c25bb91        attos/dmaap                                           "/bin/sh -c ./star..."   15 hours ago        Up 15 hours         0.0.0.0:3904-3905->3904-3905/tcp                     dockerfiles_dmaap_1

d3dcbe8b3dd6        dockerfiles_kafka                                     "start-kafka.sh"         15 hours ago        Up 15 hours         0.0.0.0:9092->9092/tcp                               dockerfiles_kafka_1

52f929f6aa06        wurstmeister/zookeeper                                "/bin/sh -c '/usr/..."   15 hours ago        Up 15 hours         22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp   dockerfiles_zookeeper_1

Docker log

docker logs -f testconfig_aai-resources.api.simpledemo.openecomp.org_1


Docker Build

docker build -t nexus3.onap.org:10001/openecomp/dcae/pgaas -f Dockerfile .


Step 29/29 : ENTRYPOINT usr/local/bin/entrypoint.sh

 ---> Using cache

 ---> d3cf07a80918

Successfully built d3cf07a80918

Successfully tagged nexus3.onap.org:10001/openecomp/dcae/pgaas:latest

obrienbiometrics:pgaas michaelobrien$ docker images

REPOSITORY                                   TAG                 IMAGE ID            CREATED             SIZE

nexus3.onap.org:10001/openecomp/dcae/pgaas   latest              d3cf07a80918        9 minutes ago       1.03GB

Docker Registry Image Search

where the image name is "dcae-controller"

obrienbiometrics:pgaas michaelobrien$ curl -Ss -u docker:docker https://nexus3.onap.org:10001/v2/dcae-controller/tags/list | jq

{

  "name": "dcae-controller",

  "tags": [

    "0.1.0-SNAPSHOT",

    "1.0.0"

  ]}



Docker Push


Dockerhub


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



ONAP nexus3

We cannot push directly to nexus3 - we need to do a staged release -  CIMAN-22 - Getting issue details... STATUS

Not currently working

obrienbiometrics:pgaas michaelobrien$ docker push  nexus3.onap.org:10001/openecomp/dcae/pgaas
The push refers to a repository [nexus3.onap.org:10001/openecomp/dcae/pgaas]
b4f440dc89cd: Preparing
b1a91ac0378f: Preparing
a6ab361d9284: Preparing
01d34e08a9e0: Preparing
67166bc93a3a: Preparing
f0cc66c45ab4: Waiting
d09c777e7ae4: Waiting
e30c66e473f0: Waiting
01b1f5510a52: Waiting
94f82c263b44: Waiting
a1df65c04630: Waiting
3c8596501eba: Waiting
17ba7123d342: Waiting
1fcfa71c715c: Waiting
7ed908687894: Waiting
764d7670ed3c: Waiting
28868d65df7c: Waiting
a55b0c3f0a89: Waiting
372ceae4f0a6: Waiting
63a268fe22b1: Waiting
28312f9d3023: Waiting
ef1d2d917acc: Waiting
a09947e71dc0: Waiting
9c42c2077cde: Waiting
625c7a2a783b: Waiting
25e0901a71b8: Waiting
8aa4fcad5eeb: Waiting
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "\n<!DOCTYPE html>\n<html>\n<head>\n  <title>404 - Nexus Repository Manager</title>\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n\n\n  <!--[if lt IE 9]>\n  <script>(new Image).src=\"https://nexus3.onap.org/favicon.ico?3.2.0-01\"</script>\n  <![endif]-->\n  <link rel=\"icon\" type=\"image/png\" href=\"https://nexus3.onap.org/favicon-32x32.png?3.2.0-01\" sizes=\"32x32\">\n  <link rel=\"mask-icon\" href=\"https://nexus3.onap.org/safari-pinned-tab.svg?3.2.0-01\" color=\"#5bbad5\">\n  <link rel=\"icon\" type=\"image/png\" href=\"https://nexus3.onap.org/favicon-16x16.png?3.2.0-01\" sizes=\"16x16\">\n  <link rel=\"shortcut icon\" href=\"https://nexus3.onap.org/favicon.ico?3.2.0-01\">\n  <meta name=\"msapplication-TileImage\" content=\"https://nexus3.onap.org/mstile-144x144.png?3.2.0-01\">\n  <meta name=\"msapplication-TileColor\" content=\"#00a300\">\n\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"https://nexus3.onap.org/static/css/nexus-content.css?3.2.0-01\"/>\n</head>\n<body>\n<div class=\"nexus-header\">\n  <a href=\"https://nexus3.onap.org\">\n    <div class=\"product-logo\">\n      <img src=\"https://nexus3.onap.org/static/images/nexus.png?3.2.0-01\"/>\n    </div>\n    <div class=\"product-id\">\n      <div class=\"product-id__line-1\">\n        <span class=\"product-name\">Nexus Repository Manager</span>\n      </div>\n      <div class=\"product-id__line-2\">\n        <span class=\"product-spec\">3.2.0-01</span>\n      </div>\n    </div>\n  </a>\n</div>\n\n<div class=\"nexus-body\">\n  <div class=\"content-header\">\n    <img src=\"https://nexus3.onap.org/static/rapture/resources/icons/x32/exclamation.png?3.2.0-01\"/>\n    <span class=\"title\">Error 404</span>\n    <span class=\"description\">Not Found</span>\n  </div>\n  <div class=\"content-body\">\n    <div class=\"content-section\">\n      Not Found\n    </div>\n      </div>\n</div>\n</body>\n</html>\n\n"


View docker images (don't sign in)

https://nexus3.onap.org/#browse/browse/components:docker.public

https://github.com/moby/moby/issues/22910


  • No labels