Skip to content

Code in docker shutdown post seems imcomplete #5

@kongakong

Description

@kongakong

First of all, thanks for a great article about docker shutdown: https://husobee.github.io/golang/ecs/2016/05/19/ecs-graceful-go-shutdown.html

I am trying to run your code to better understand the concept.

I put the main piece of go code from your blog post into a file main.go and put in a subdirectory './app' directory. I totally just make this up because it is not clear how to name the go file. Then I created the Dockerfile and run the docker build.

No problem at this stage.

Here is directory structure:

> tree                                                                                                                                  
.
├── Dockerfile
└── app
    └── main.go

When I bring up the docker process, I go this error:

> docker run e74e925e6789                                                                                                                
container_linux.go:262: starting container process caused "exec: \"/app\": permission denied"
docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"/app\": permission denied".

I think there is something missing with the Dockerfile?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions