I getting a trouble to build Golang projects with Gitlab. I’ve created a simple API to deploy using Docker image. My build works fine and Dokcer images is generated and published into AWS Service Registry, but when I try to run the container I get an error message from Docker.
contacts_v14: Pulling from wbpsdevops
0a8490d0dfd3: Already exists
4e02d6b72ee0: Pull complete
Status: Downloaded newer image for 232321281680.dkr.ecr.us-east-1.amazonaws.com/wbpsdevops:contacts_v14
Starting container contacts
docker: Error response from daemon: Container command ‘contacts’ not found or does not exist…
I tried to run Docker container directly from the command line to inspect if my Golang application is inside the container and it is.
When I download my artifact from Gitlab the binary does not works, but when I created it locally and put it into container using volume its works.
I’m using: Gitlab CE version 8.15.1 and Golang 1.7.3
Anyone can help me ? I appreciate.