Why won't my docker-entrypoint.sh execute?

前端 未结 11 1187
清歌不尽
清歌不尽 2021-01-31 08:02

My ENTRYPOINT script doesn\'t execute and throws standard_init_linux.go:175: exec user process caused \"no such file or directory\". Why so?

<
11条回答
  •  自闭症患者
    2021-01-31 08:15

    I struggled for hours because I haven't noticed anywhere explained that you need to copy the file in the location where the VM can access the file, preferably globally like so:

    COPY docker-entrypoint.sh /usr/local/bin/
    

    (I had thought it should just be automatically accessible since it's part of the dockerfile context)

提交回复
热议问题