go - docker-compose oci runtime error executable file not found (in linked container) -


i'm trying setup docker & compose running integration tests

i have following docker-compose.yml

version: '3' services:     tests:         build:             context: .             dockerfile: dockerfile.tests         links:             - web             - maindb     web:         build:             context: .             dockerfile: dockerfile.web         ports:             - "8080:8080"         volumes:             - .:/code             - logvolume01:/var/log         links:             - maindb     maindb:         image: postgres         environment:             postgres_password: example  volumes:     logvolume01: {} 

web container works pretty fine

$ docker-compose  -p wh  run web starting wh_maindb_1 ... done 2017/07/27 22:05:34 [i] http server running on http://:8080 

but when run tests container, error

$ docker-compose  -p wh  run tests starting wh_maindb_1 ... done starting 6faff07f7671_6faff07f7671_wh_web_1 ...  starting 6faff07f7671_6faff07f7671_wh_web_1 ... error  error: 6faff07f7671_6faff07f7671_wh_web_1  cannot start service web: oci runtime error: container_linux.go:262: starting container process caused "exec: \"web\": executable file not found in $path" 

here dockerfile.web

$ cat dockerfile.web  ubuntu:xenial workdir /app add bin/* /app/ cmd ["/app/web"] 

/app/web dynamically linked daemon written in golang 1.6

and version info

$ docker version  client:  version:      17.06.0-ce  api version:  1.30  go version:   go1.8.3  git commit:   02c1d87  built:        fri jun 23 21:23:31 2017  os/arch:      linux/amd64  server:  version:      17.06.0-ce  api version:  1.30 (minimum version 1.12)  go version:   go1.8.3  git commit:   02c1d87  built:        fri jun 23 21:19:04 2017  os/arch:      linux/amd64  experimental: false  $ docker-compose version docker-compose version 1.14.0, build c7bdf9e docker-py version: 2.4.2 cpython version: 2.7.12 openssl version: openssl 1.0.2g  1 mar 2016 

this maybe related docker-compose bug.

try cleaning containers

docker-compose down 

alternatively (you lose container data):

docker rm -f $(docker ps -a -q) 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -