Adven27 / grpc-wiremock

gRPC Mock Server
MIT License
93 stars 40 forks source link

Build container with no tag or :latest is failed ( exec format error ) #17

Closed kirgent closed 3 years ago

kirgent commented 3 years ago

Cleaned all related images before building by

docker images --no-trunc|grep grpc-wiremock | awk '{ print $3 }' | xargs -r docker rmi

If I use in docker-compose

image: adven27/grpc-wiremock:latest

or

image: adven27/grpc-wiremock

it causes problem with starting container

Short log:

docker-compose -f dockerfiles/qa/docker-compose.yml up checker-mock
Pulling checker-mock (adven27/grpc-wiremock:)...
latest: Pulling from adven27/grpc-wiremock
80bc30679ac1: Pull complete
9bf18fab4cfb: Pull complete
5979309c983a: Pull complete
b6482171366c: Pull complete
7ff99fec0284: Pull complete
b87bb7d9adf8: Pull complete
743b23f2e08f: Pull complete
0822b81f3d07: Pull complete
0baa3d5c279a: Pull complete
2c6cc17784c8: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:4f6cb6aefe6abf458c686970cad7c7b78fe3057773f6a1c63b5a2557ca3bec3a
Status: Downloaded newer image for adven27/grpc-wiremock:latest
Recreating checker-mock ... done
Attaching to checker-mock
checker-mock                                     | standard_init_linux.go:228: exec user process caused: exec format error

Verbose log:

docker-compose --verbose -f dockerfiles/qa/docker-compose.yml up checker-mock
compose.config.config.find: Using configuration files: ./dockerfiles/qa/docker-compose.yml
docker.utils.config.find_config_file: Trying paths: ['/home/kgrushin/.docker/config.json', '/home/kgrushin/.dockercfg']
docker.utils.config.find_config_file: Found file at path: /home/kgrushin/.docker/config.json
docker.auth.load_config: Found 'auths' section
docker.auth.parse_auth: Auth data for registry.rtty.in is absent. Client might be using a credentials store instead.
docker.auth.load_config: Found 'credsStore' section
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/version HTTP/1.1" 200 829
compose.cli.command.get_client: docker-compose version 1.21.0, build unknown
docker-py version: 3.4.1
CPython version: 3.7.3
OpenSSL version: OpenSSL 1.1.1d  10 Sep 2019
compose.cli.command.get_client: Docker base_url: http+docker://localhost
compose.cli.command.get_client: Docker version: Platform={'Name': 'Docker Engine - Community'}, Components=[{'Name': 'Engine', 'Version': '20.10.8', 'Details': {'ApiVersion': '1.41', 'Arch': 'amd64', 'BuildTime': '2021-07-30T19:52:10.000000000+00:00', 'Experimental': 'false', 'GitCommit': '75249d8', 'GoVersion': 'go1.16.6', 'KernelVersion': '5.10.0-0.bpo.8-amd64', 'MinAPIVersion': '1.12', 'Os': 'linux'}}, {'Name': 'containerd', 'Version': '1.4.9', 'Details': {'GitCommit': 'e25210fe30a0a703442421b0f60afac609f950a3'}}, {'Name': 'runc', 'Version': '1.0.1', 'Details': {'GitCommit': 'v1.0.1-0-g4144b63'}}, {'Name': 'docker-init', 'Version': '0.19.0', 'Details': {'GitCommit': 'de40ad0'}}], Version=20.10.8, ApiVersion=1.41, MinAPIVersion=1.12, GitCommit=75249d8, GoVersion=go1.16.6, Os=linux, Arch=amd64, KernelVersion=5.10.0-0.bpo.8-amd64, BuildTime=2021-07-30T19:52:10.000000000+00:00
compose.cli.verbose_proxy.proxy_callable: docker info <- ()
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/info HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker info -> {'Architecture': 'x86_64',
 'BridgeNfIp6tables': True,
 'BridgeNfIptables': True,
 'CPUSet': True,
 'CPUShares': True,
 'CgroupDriver': 'cgroupfs',
 'CgroupVersion': '1',
 'ContainerdCommit': {'Expected': 'e25210fe30a0a703442421b0f60afac609f950a3',
                      'ID': 'e25210fe30a0a703442421b0f60afac609f950a3'},
 'Containers': 1,
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_network <- ('qa_pusher-test-network')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/networks/qa_pusher-test-network HTTP/1.1" 200 512
compose.cli.verbose_proxy.proxy_callable: docker inspect_network -> {'Attachable': True,
 'ConfigFrom': {'Network': ''},
 'ConfigOnly': False,
 'Containers': {},
 'Created': '2021-08-10T10:11:13.473870393+03:00',
 'Driver': 'bridge',
 'EnableIPv6': False,
 'IPAM': {'Config': [{'Subnet': '192.168.0.1/24'}],
          'Driver': 'default',
          'Options': None},
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=False, filters={'label': ['com.docker.compose.project=qa', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/containers/json?limit=-1&all=0&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Dqa%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 3
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 0 items)
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=qa', 'com.docker.compose.service=checker-mock', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Dqa%22%2C+%22com.docker.compose.service%3Dchecker-mock%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 1704
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/containers/b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': 'docker-default',
 'Args': ['bootRun', '-i'],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['gradle', 'bootRun', '-i'],
            'Env': ['affinity:container==cca8062ad98efe2563f5f35b2f10e9b20e85bed5763bad2a0e544885334d89be',
                    'PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('adven27/grpc-wiremock:latest')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/images/adven27/grpc-wiremock:latest/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'arm64',
 'Author': '',
 'Comment': 'buildkit.dockerfile.v0',
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['gradle', 'bootRun', '-i'],
            'Env': ['PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
...
compose.cli.verbose_proxy.proxy_callable: docker containers <- (all=True, filters={'label': ['com.docker.compose.project=qa', 'com.docker.compose.service=checker-mock', 'com.docker.compose.oneoff=False']})
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/containers/json?limit=-1&all=1&size=0&trunc_cmd=0&filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Dqa%22%2C+%22com.docker.compose.service%3Dchecker-mock%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 1704
compose.cli.verbose_proxy.proxy_callable: docker containers -> (list with 1 items)
compose.cli.verbose_proxy.proxy_callable: docker inspect_image <- ('adven27/grpc-wiremock:latest')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/images/adven27/grpc-wiremock:latest/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_image -> {'Architecture': 'arm64',
 'Author': '',
 'Comment': 'buildkit.dockerfile.v0',
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['gradle', 'bootRun', '-i'],
            'Env': ['PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
...
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/containers/b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': 'docker-default',
 'Args': ['bootRun', '-i'],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['gradle', 'bootRun', '-i'],
            'Env': ['affinity:container==cca8062ad98efe2563f5f35b2f10e9b20e85bed5763bad2a0e544885334d89be',
                    'PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
...
compose.parallel.feed_queue: Pending: {<Service: checker-mock>}
compose.parallel.feed_queue: Starting producer thread for <Service: checker-mock>
Starting checker-mock ... 
compose.parallel.feed_queue: Pending: {<Container: checker-mock (b26307)>}
compose.parallel.feed_queue: Starting producer thread for <Container: checker-mock (b26307)>
compose.cli.verbose_proxy.proxy_callable: docker attach <- ('b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7', stdout=True, stderr=True, stream=True)
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.24/containers/b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7/attach?logs=0&stdout=1&stderr=1&stream=1 HTTP/1.1" 101 0
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/containers/b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker attach -> <docker.types.daemon.CancellableStream object at 0x7ff85560f470>
compose.cli.verbose_proxy.proxy_callable: docker start <- ('b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7')
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
compose.parallel.feed_queue: Pending: set()
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.24/containers/b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7/start HTTP/1.1" 204 0
compose.cli.verbose_proxy.proxy_callable: docker start -> None
Starting checker-mock ... done
compose.parallel.feed_queue: Pending: set()
compose.parallel.parallel_execute_iter: Finished processing: <Service: checker-mock>
compose.parallel.feed_queue: Pending: set()
Attaching to checker-mock
compose.cli.verbose_proxy.proxy_callable: docker events <- (filters={'label': ['com.docker.compose.project=qa', 'com.docker.compose.oneoff=False']}, decode=True)
checker-mock                                     | standard_init_linux.go:228: exec user process caused: exec format error
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/events?filters=%7B%22label%22%3A+%5B%22com.docker.compose.project%3Dqa%22%2C+%22com.docker.compose.oneoff%3DFalse%22%5D%7D HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker events -> <docker.types.daemon.CancellableStream object at 0x7ff85560cf98>
compose.cli.verbose_proxy.proxy_callable: docker wait <- ('b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7')
compose.cli.verbose_proxy.proxy_callable: docker inspect_container <- ('b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7')
urllib3.connectionpool._make_request: http://localhost:None "GET /v1.24/containers/b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7/json HTTP/1.1" 200 None
compose.cli.verbose_proxy.proxy_callable: docker inspect_container -> {'AppArmorProfile': 'docker-default',
 'Args': ['bootRun', '-i'],
 'Config': {'AttachStderr': False,
            'AttachStdin': False,
            'AttachStdout': False,
            'Cmd': None,
            'Domainname': '',
            'Entrypoint': ['gradle', 'bootRun', '-i'],
            'Env': ['affinity:container==cca8062ad98efe2563f5f35b2f10e9b20e85bed5763bad2a0e544885334d89be',
                    'PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
...
urllib3.connectionpool._make_request: http://localhost:None "POST /v1.24/containers/b26307e47287d1780ed2e0aa69ba6f3f7296e9850fff24f4e2990ddcedb913b7/wait HTTP/1.1" 200 30
compose.cli.verbose_proxy.proxy_callable: docker wait -> {'Error': None, 'StatusCode': 1}
checker-mock exited with code 1
uname -a
Linux debian 5.10.0-0.bpo.8-amd64 #1 SMP Debian 5.10.46-2~bpo10+1 (2021-07-22) x86_64 GNU/Linux
docker version
Client: Docker Engine - Community
 Version:           20.10.8
 API version:       1.41
 Go version:        go1.16.6
 Git commit:        3967b7d
 Built:             Fri Jul 30 19:54:02 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.8
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.6
  Git commit:       75249d8
  Built:            Fri Jul 30 19:52:10 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.9
  GitCommit:        e25210fe30a0a703442421b0f60afac609f950a3
 runc:
  Version:          1.0.1
  GitCommit:        v1.0.1-0-g4144b63
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker-compose

  checker-mock:
    image: adven27/grpc-wiremock:latest
    container_name: checker-mock
    ports:
      - "3333:50000" # grpc
      - "3336:8888" # http
    volumes:
      - ./volumes/proto/checker:/proto
      - ./volumes/wiremock/checker:/wiremock
    dns_search: .
    networks:
      - pusher-test-network
dtuchs commented 3 years ago

Before yesterday's releases, there were no problems with the tag latest.

Adven27 commented 3 years ago

@kirgent I've republished latest and 1.1.1 tags, could you please try now?

Adven27 commented 3 years ago

I am closing this issue. Please, don't hesitate to reopen it if needed.