Actually my issue is that i want to set some flags on docker run so i can give 
privileges to the docker image, using —privileged. In the Dockerfile i am using 
CMD script.sh in which my command fails due to privileges.

Thodoris 

> On 7 Sep 2017, at 17:40, Olivier Sallou <[email protected]> wrote:
> 
> 
> 
> On 09/06/2017 06:40 PM, Thodoris Zois wrote:
>> Yes you are right, this is the problem. I aso noticed it. Docker image has 
>> no privileges so script can't execute this command. Is there any way to use 
>> arguments in proto? Or i have to set command to the task? And set shell to 
>> true? 
> personally, I set
> task.command.shell to True
> and task.command.value = "myscript to execute"
> 
> "myscript" is the bash commands to execute.
> 
> This can be used to override default entrypoint if this is your issue
> 
> Olivier
>> 
>> Thodoris
>> 
>>> On 6 Sep 2017, at 18:26, James Peach <[email protected]> wrote:
>>> 
>>> 
>>>> On Sep 6, 2017, at 4:41 AM, Thodoris Zois <[email protected]> wrote:
>>>> 
>>>> Hello, 
>>>> 
>>>> I am using the Mesos Containerizer with Docker Images. The problem is that 
>>>> whenever a container exits my task gets TASK_FAILED because the container 
>>>> exits with ‘1’.
>>>> My docker file invokes a shell script via CMD /script.sh.
>>>> 
>>>> My protobuff can be found below:
>>>> https://pastebin.com/1agjAFdm
>>>> 
>>>> 
>>>> The agent log can be found here:
>>>> https://pastebin.com/Q6qndVuU
>>>> 
>>>> 
>>>> The stderr and stdout from the UI can be found here:
>>>> stdout: https://pastebin.com/SkDDUDDJ
>>>> 
>>>> stderr: https://pastebin.com/t2TFgQ4G
>>> /execute_blast.sh: line 4: /proc/sys/vm/drop_caches: Read-only file system
>>> 
>>> 
>>> Does your task exit when this happens?
>>> 
>>> 
> 
> -- 
> Olivier Sallou
> IRISA / University of Rennes 1
> Campus de Beaulieu, 35000 RENNES - FRANCE
> Tel: 02.99.84.71.95
> 
> gpg key id: 4096R/326D8438  (keyring.debian.org <http://keyring.debian.org/>)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

Reply via email to