Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

ERROR: In file '.\docker-compose.yml', service must be a mapping, not a NoneType #376

Open
2 tasks
nwoodcl opened this issue Jan 12, 2021 · 2 comments
Open
2 tasks

Comments

@nwoodcl
Copy link

nwoodcl commented Jan 12, 2021

Type of issue

  • [ x] Bug
  • New feature
  • Enhancement

Description

Following the documentation, went to fresh clone, scripts, build directory and ran docker-compose up
Get the error:
ERROR: In file '.\docker-compose.yml', service must be a mapping, not a NoneType
...

Steps to reproduce

  1. [First step]
  2. [Second step]
  3. [and so on...]

Expected behavior

...

Current behavior <!-- The actual behavior observed --

...

Known workarounds

...

Possible solution

...

Context and Environment

  • Operating System: ...
  • GitHub branch: ...
  • .NET Runtime: ...

Code to reproduce the bug

using Xunit;

public class MyTest
{
    [Fact]
    public void TestToReproduceIssue()
    {
        // Arrange
        ...

        // Act
        ...

        // Assert
        ...
    }
}
@peterfelts
Copy link
Collaborator

I created a clean clone of the repo on my Windows box (Build 19042.685)

Docker -v
Docker version 20.10.2, build 2291f61

cd to the ...device-simulation-dotnet3\scripts\docker directory
docker-compose up

And the service started running.

I see the same error that you mentioned on Stack Overflow... perhaps this is a Docker version issue?

https://stackoverflow.com/questions/43452448/docker-compose-yml-service-must-be-a-mapping-not-a-nonetype

@peterfelts
Copy link
Collaborator

Closing this as I wasn't able to repro it and there hasn't been any activity. Please reactivate if you're still seeing this error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants