You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Sunzhe (JIRA)" <ji...@apache.org> on 2016/07/25 06:51:20 UTC

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

     [ https://issues.apache.org/jira/browse/MESOS-5896?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sunzhe updated MESOS-5896:
--------------------------
    Description: 
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.

  was:
When I create Mesos container with docker image, like this:
{code:title=Bar.java|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.


> 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: containeri
>
> 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)