You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Gilbert Song (JIRA)" <ji...@apache.org> on 2016/08/03 00:34:20 UTC

[jira] [Commented] (MESOS-5915) When start Mesos container and docker images, it does not work.

    [ https://issues.apache.org/jira/browse/MESOS-5915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15405092#comment-15405092 ] 

Gilbert Song commented on MESOS-5915:
-------------------------------------

I am closing this JIRA since it duplicates the MESOS-5896, and most likely this is a configuration issue. 

> When start Mesos container and docker images, it does not work.
> ---------------------------------------------------------------
>
>                 Key: MESOS-5915
>                 URL: https://issues.apache.org/jira/browse/MESOS-5915
>             Project: Mesos
>          Issue Type: Bug
>          Components: containerization
>    Affects Versions: 1.0.0
>            Reporter: Sunzhe
>              Labels: containerizer, docker
>
> The agent flags:
> {code}
> ./bin/mesos-agent.sh --master=<master_ip>:5050	\
> 		  --work_dir=/var/lib/mesos	\
> 		  --isolation=cgroups/devices,gpu/nvidia,disk/du,docker/runtime,filesystem/linux	\
> 		  --enforce_container_disk_quota	\
> 		  --containerizers=mesos,docker	\
> 		  --image_providers=appc,docker
> {code}
> And when I create Mesos container with docker image, like this:
> {code}
> {
> 	"id": "test-mesos-container-docker-image",
> 	"cmd": "while [ true ]; do uname -a; sleep 3; done",
> 	"cpus": 1,
> 	"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)