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

Compare with Current View Page History

« Previous Version 4 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:~# docker ps

CONTAINER ID        IMAGE                                                             COMMAND                  CREATED             STATUS              PORTS               NAMES

6f11ab17ff4c        nexus3.onap.org:10001/openecomp/model-loader:1.0-STAGING-latest   "/bin/sh -c /opt/j..."   3 days ago          Up 3 days                               model-loader-service

d3b862b15268        nexus3.onap.org:10001/openecomp/ajsc-aai:1.0-STAGING-latest       "/bin/sh -c ./star..."   3 days ago          Up 3 days                               aai-service

b00a2a4d445b        aaidocker/aai-hbase-1.2.3                                         "/bin/bash /opt/en..."   3 days ago          Up 3 days                               hbase-1.2.3

root@vm1-aai:~# docker exec -it aai-service bash

aaiadmin@vm1-aai:/$


Docker Build

docker build -f Dockerfile .

Sending build context to Docker daemon 19.97 kB
Step 1 : FROM ubuntu:16.04
 ---> d355ed3537e9
Step 2 : RUN apt-get update -y
 ---> Running in a88cbdb86e2e
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
....


Docker Push



  • No labels