标签:clu containe for image cpu path work service docke
直接通过 docker命令运行:
docker run -d -p 31980:8080 -p 31900:50000 -v /docker-image-slave-registry/image/registry2/jenkins:/var/jenkins_home -v /etc/localtime:/etc/localtime --privileged=true jenkins
通过marathon运行(有目前问题)
{ "id": "jenkins", "cmd": null, "cpus": 1, "mem": 256, "disk": 0, "instances": 1, "container": { "docker": { "image": "jenkins", "privileged": true, "forcePullImage": false }, "type": "DOCKER", "portMappings": [ { "containerPort": 50000, "hostPort": 31900, "servicePort": 0, "protocol": "tcp", "name": "jenkins50000", "labels": null }, { "containerPort": 8080, "hostPort": 31980, "servicePort": 0, "protocol": "tcp", "name": "jenkins8080", "labels": null } ], "volumes": [ { "containerPath": "/var/jenkins_home", "mode": "RW", "hostPath": "/docker-image-slave-registry/image/registry2/jenkins" },{ "containerPath": "/etc/localtime", "mode": "RW", "hostPath": "/etc/localtime" }] }, "networks": [ { "mode": "container/bridge" } ], "env": {}, "labels": {}, "constraints": [["hostname", "CLUSTER", "192.168.1.153"]], "healthChecks": [] }
标签:clu containe for image cpu path work service docke
原文地址:https://www.cnblogs.com/heling/p/11227927.html