Changes between Version 4 and Version 5 of linux/openshift


Ignore:
Timestamp:
2018/01/01 12:42:04 (7 years ago)
Author:
yuna
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • linux/openshift

    v4 v5  
    2828# docker ps --alll 
    2929# docker log <コンテナ名> 
     30}}} 
     31 
     32== イメージのプッシュ 
     33{{{ 
     34OpenShiftにログイン 
     35[root@os-master1 ~]# oc login 
     36Authentication required for https://os-master1.local:8443 (openshift) 
     37Username: admin 
     38Password: 
     39Login successful. 
     40 
     41You don't have any projects. You can try to create a new project, by running 
     42 
     43    oc new-project <projectname> 
     44 
     45イメージをアップロードするプロジェクトを作成 
     46[root@os-master1 ~]# oc new-project common 
     47Now using project "common" on server "https://os-master1.local:8443". 
     48 
     49You can add applications to this project with the 'new-app' command. For example, try: 
     50 
     51    oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-ex.git 
     52 
     53レジストリにログイン 
     54[root@os-master1 ~]# docker login -u $(oc whoami) -p $(oc whoami -t) docker-registry-default.router.default.svc.cluster.local 
     55Login Succeeded 
     56 
     57イメージのプッシュ 
     58[root@os-master1 ~]# docker push docker-registry-default.router.default.svc.cluster.local/common/nginx:latest 
     59The push refers to a repository [docker-registry-default.router.default.svc.cluster.local/common/nginx] 
     60a103d141fc98: Pushed 
     6173e2bd445514: Pushed 
     622ec5c0a4cb57: Pushed 
     63latest: digest: sha256:926b086e1234b6ae9a11589c4cece66b267890d24d1da388c96dd8795b2ffcfb size: 948 
    3064}}} 
    3165