Error when running Docker Compose in Visual Studio project for RabbitMQ container

noblerare

I am trying to build this image in a container via Visual Studio project. I took the Dockerfile placed it in a subfolder in my project directory and updated the docker_compose.yaml

version: '3.4'

services:
  service1:
    blahblah
  service2:
    blahblah
  the_rabbitmq_service:
    image: messagingqueue
    build: 
      context: .
      dockerfile: SubFolderName\Dockerfile
    ports: 
      - "15672:15672"
      - "5672:5672"
    volumes:
      - ../some/path:c:\somepath

When I try to build my project, it goes out to run the relevant services and pull images it does not have. The first two services succeed (as they previously did) but the new one I added tries for a bit and then gives me this error:

1>Service 'the_rabbitmq_service' failed to build: The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri $env:rabbit_download_url -OutFile rabbitmq.zip ; Expand-Archive -Path .\rabbitmq.zip -DestinationPath "c:\" ; Remove-Item -Force rabbitmq.zip; Rename-Item c:\rabbitmq_server-$env:RMQ_VERSION c:\rabbitmq' returned a non-zero code: 1

I know it's not much to go on but I'm hoping that someone out there has any insight into my issue?

noblerare

The docker_compose.yml file does not only have to build from a Dockerfile. Instead, you can include the image from which it can do a pull as well.

Therefore, what worked for me is instead of pointing to the problematic Dockerfile, I simply did:

  the_rabbitmq_service:
    image: gsxsolutions/rmq-nano:3.7.7
    ports: 
      - "15672:15672"
      - "5672:5672"
    volumes:
      - ../some/path:c:\somepath

That worked for me.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

FileLoadException Access is denied when running Docker Compose project in Visual Studio 2019

分類Dev

npm can't find package.json when running docker container with compose

分類Dev

Error when running jekyll docker container with boot2docker on Mac

分類Dev

getting 'Operation not permitted' error when setting ulimit for memlock in a Docker container running ubuntu:xenial (macOS host)

分類Dev

Error Copying Typescript files when packaging Azure project - Visual Studio 2015 Update1

分類Dev

Visual Studio 2017: Error when compiling project in MinimumRecommendedRules.ruleset file

分類Dev

strptime throws error when run in docker container

分類Dev

Error when trying to install puppeteer in Docker container

分類Dev

Publish Profile Targets Not Running Visual Studio 2019 MVC Project

分類Dev

Running docker container on nanoPI leads to "exec format error"

分類Dev

When does a running Docker container run out of disk space?

分類Dev

Can't import geopandas to python when running in docker container

分類Dev

Running multiple GlassFish with Docker Compose

分類Dev

How to copy a csproj file using docker without visual studio and without docker compose?

分類Dev

Error when adding reference Visual Studio 2013

分類Dev

Visual Studio database project fails to publish, no error messages

分類Dev

Running ipython notebook in a Docker Container

分類Dev

Cannot access RabbitMQ UI on docker container

分類Dev

'Parameter declaration <x> should be a vector' error when running as leiningen project

分類Dev

Getting the Error 403.14 when running a project that uses WebAPI

分類Dev

SSH Agent forwarding inside docker compose container

分類Dev

Connect to another container using Docker compose

分類Dev

Docker compose set container name for stacks

分類Dev

Docker-compose container connection to MySql not working

分類Dev

How does Visual Studio know my project is up to date so it can skip running MSBuild?

分類Dev

running python selenium in docker-compose

分類Dev

Web container cannot call backend container from docker compose

分類Dev

ssh-agent does not remember identities when running inside a docker container in DC/OS

分類Dev

Nested Logic App - Error when parameterizing the workflow id in Visual Studio

Related 関連記事

  1. 1

    FileLoadException Access is denied when running Docker Compose project in Visual Studio 2019

  2. 2

    npm can't find package.json when running docker container with compose

  3. 3

    Error when running jekyll docker container with boot2docker on Mac

  4. 4

    getting 'Operation not permitted' error when setting ulimit for memlock in a Docker container running ubuntu:xenial (macOS host)

  5. 5

    Error Copying Typescript files when packaging Azure project - Visual Studio 2015 Update1

  6. 6

    Visual Studio 2017: Error when compiling project in MinimumRecommendedRules.ruleset file

  7. 7

    strptime throws error when run in docker container

  8. 8

    Error when trying to install puppeteer in Docker container

  9. 9

    Publish Profile Targets Not Running Visual Studio 2019 MVC Project

  10. 10

    Running docker container on nanoPI leads to "exec format error"

  11. 11

    When does a running Docker container run out of disk space?

  12. 12

    Can't import geopandas to python when running in docker container

  13. 13

    Running multiple GlassFish with Docker Compose

  14. 14

    How to copy a csproj file using docker without visual studio and without docker compose?

  15. 15

    Error when adding reference Visual Studio 2013

  16. 16

    Visual Studio database project fails to publish, no error messages

  17. 17

    Running ipython notebook in a Docker Container

  18. 18

    Cannot access RabbitMQ UI on docker container

  19. 19

    'Parameter declaration <x> should be a vector' error when running as leiningen project

  20. 20

    Getting the Error 403.14 when running a project that uses WebAPI

  21. 21

    SSH Agent forwarding inside docker compose container

  22. 22

    Connect to another container using Docker compose

  23. 23

    Docker compose set container name for stacks

  24. 24

    Docker-compose container connection to MySql not working

  25. 25

    How does Visual Studio know my project is up to date so it can skip running MSBuild?

  26. 26

    running python selenium in docker-compose

  27. 27

    Web container cannot call backend container from docker compose

  28. 28

    ssh-agent does not remember identities when running inside a docker container in DC/OS

  29. 29

    Nested Logic App - Error when parameterizing the workflow id in Visual Studio

ホットタグ

アーカイブ