[
https://issues.apache.org/jira/browse/MESOS-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15405437#comment-15405437
]
Sunzhe commented on MESOS-5896:
-------------------------------
The agent like below:
{code}
32 GLOG_v=1 ./bin/mesos-agent.sh \
33 --master=zk://${MESOS_MASTER_IP}:2181/mesos \
34 --ip=10.100.3.3 \
35 --work_dir=${MESOS_WORK_DIR} \
36
--isolation=cgroups/devices,gpu/nvidia,disk/du,docker/runtime,filesystem/linux \
37 --docker_registry=${ACHIEVE_DOCKER_IMAGES_DIR} \
38 --enforce_container_disk_quota \
39 --containerizers=mesos \
40 --image_providers=docker \
41 --executor_environment_variables="{}"
{code}
If I don't specify the {{-\-resources}} it works well.
> When start Mesos container and docker images, it does not work.
> ---------------------------------------------------------------
>
> Key: MESOS-5896
> URL: https://issues.apache.org/jira/browse/MESOS-5896
> Project: Mesos
> Issue Type: Bug
> Components: docker
> Affects Versions: 1.0.0
> Reporter: Sunzhe
> Labels: containerizer
>
> When I create Mesos container with docker image, like this:
> {code:title=test.json|borderStyle=solid}
> {
> "id": "test-mesos-container-docker-image",
> "cmd": "while [ true ]; do uname -a; sleep 3; done",
> "cpus": 0.5,
> "mem": 32.0,
> "container": {
> "type": "MESOS",
> "mesos": {
> "image": {
> "type": "DOCKER",
> "docker": {
> "name": "ubuntu:14.04"
> }
> },
> "network": "BRIDGE",
> "portMappings": [
> {
> "containerPort": 8080,
> "hostPort": 0,
> "servicePort": 10008,
> "protocol": "tcp",
> "labels": {}
> }
> ],
> "privileged": false,
> "parameters": [],
> "forcePullImage": false
> }
> }
> }
> {code}
> It does not wok! The result seems Docker image does not work, the container
> uses host filesystem not the Docker image.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)