 There was a need to create a cloud service and for the implementation of this project open source solution was chosen OpenShift. After successfully passing Getting Started and deploying HelloWorld, unexpected difficulties arose: the official documentation required detailed study to solve such a simple task as raising your own ready container with arbitrary content. It was necessary to understand a little and below the simple ready manual. It is understood that the reader is familiar with docker, because There are no explanations of his commands in this manual.
 There was a need to create a cloud service and for the implementation of this project open source solution was chosen OpenShift. After successfully passing Getting Started and deploying HelloWorld, unexpected difficulties arose: the official documentation required detailed study to solve such a simple task as raising your own ready container with arbitrary content. It was necessary to understand a little and below the simple ready manual. It is understood that the reader is familiar with docker, because There are no explanations of his commands in this manual. $ docker run -d --name "origin" \ --privileged --pid=host --net=host \ -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys -v /var/lib/docker:/var/lib/docker:rw \ -v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes \ openshift/origin start  https://localhost:8443 

 $ docker exec -it origin bash  $ oc login  $ oc new-project config-server --description="Spring Cloud Config-Server" --display-name="Main config-server" 
 $ vi pod.json  { "kind": "Pod", "apiVersion": "v1", "metadata": { "name": "config-server", "creationTimestamp": null, "labels": { "name": "config-server" } }, "spec": { "containers": [ { "name": "config-server", "image": "config-server", "ports": [ { "containerPort": 8888, "protocol": "TCP" } ], "resources": {}, "volumeMounts": [ { "name":"tmp", "mountPath":"/tmp" } ], "terminationMessagePath": "/dev/termination-log", "imagePullPolicy": "IfNotPresent", "capabilities": {}, "securityContext": { "capabilities": {}, "privileged": false } } ], "volumes": [ { "name":"tmp", "emptyDir": {} } ], "restartPolicy": "Always", "dnsPolicy": "ClusterFirst", "serviceAccount": "" }, "status": {} }  $ oc create -f pod.json 

 http://172.17.0.2:8888 Source: https://habr.com/ru/post/281979/
All Articles