Docker中的StackDriver实现-在$ PATH中找不到可执行文件

时间:2018-08-08 05:24:30

标签: python-3.x docker google-cloud-stackdriver

我正在尝试通过docker实现stackdriver,但出现错误

  

oci运行时错误:container_linux.go:247:启动容器进程导致“ exec:\” sudo \”:在$ PATH中找不到可执行文件”

这是我的Docker文件

FROM python:3                                                                                                


WORKDIR /app                                                                                               


COPY requirements.txt ./                                                                                     


RUN pip install --no-cache-dir -r requirements.txt                                                                                                                                                                

COPY . .                                                                                                     

ENV PATH="/usr/bin:${PATH}"                                                                                  

RUN ["curl","-sSO","https://dl.google.com/cloudagents/install-monitoring-agent.sh"]                         

COPY /install-monitoring-agent.sh /usr/bin                                                                   

RUN ["sudo","chmod", "+x", "/home/hemanthsai1234u/install-monitoring-agent.sh"]                            

RUN ["sudo","service","stackdriver-agent","restart"]                                                        

EXPOSE 8000                     

0 个答案:

没有答案