Skip to content

stack --docker doesn't work with docker 1.9.1 #1570

Closed

Description

@Fuuzetsu
stack --docker build
Invalid 'docker inspect' output: Error in $[0].Config.Entrypoint: failed to parse field 'Config': failed to parse field Config: failed to parse field 'Entrypoint': failed to parse field Entrypoint: expected [a], encountered Null.
stack --version
Version 1.0.0 x86_64
docker --version
Docker version 1.9.1, build a34a1d59

I don't have docker inspect output for you because it's on a private image but if you can't replicate I could possibly arrange something.

Activity

  1. Fuuzetsu commented on Dec 28, 2015

    @Fuuzetsu
    ContributorAuthor

    also experienced with docker 1.8.1, will re-open after I can figure out what is actually failing.

  2. 3noch commented on Jan 8, 2016

    @3noch
    Member

    I'm seeing this too:

    $ stack --docker build
    Invalid 'docker inspect' output: Error in $[0].Config.Entrypoint: failed to parse field 'Config': failed to parse field Config: failed to parse field 'Entrypoint': failed to parse field Entrypoint: expected [a], encountered Null.
    

    with

    $ stack --version
    Version 1.0.1, Git revision d0d681983d72b92457f3f7e81db5eaf8d502f72d x86_64
    $ docker --version
    Docker version 1.9.1, build a34a1d5
    

    I'm on Mac OS X and I'm using LTS-4.0.

  3. 3noch commented on Jan 8, 2016

    @3noch
    Member

    Here's verbose output:

    $ stack --docker build --verbose
    Version 1.0.1, Git revision d0d681983d72b92457f3f7e81db5eaf8d502f72d x86_64
    2016-01-07 22:42:15.740319: [debug] Checking for project config at: /Users/elliot/a/mine/haskapp/stack.yaml @(stack_JrN6P079si19wvziCmbeHf:Stack.Config src/Stack/Config.hs:577:9)
    2016-01-07 22:42:15.743918: [debug] Loading project config file stack.yaml @(stack_JrN6P079si19wvziCmbeHf:Stack.Config src/Stack/Config.hs:600:13)
    2016-01-07 22:42:15.744911: [debug] Run process: docker --version @(stack_JrN6P079si19wvziCmbeHf:System.Process.Read src/System/Process/Read.hs:268:3)
    2016-01-07 22:42:15.756776: [debug] Run process: docker inspect fpco/stack-build:lts-4.0 @(stack_JrN6P079si19wvziCmbeHf:System.Process.Read src/System/Process/Read.hs:268:3)
    Invalid 'docker inspect' output: Error in $[0].Config.Entrypoint: failed to parse field 'Config': failed to parse field Config: failed to parse field 'Entrypoint': failed to parse field Entrypoint: expected [a], encountered Null.
    

    And the inspect command:

    $ docker inspect fpco/stack-build:lts-4.0
    [
    {
        "Id": "e2dff8a8096ca4b1d506598b02fd206e658dc795b6bd72f0b5460f18b3b2b12f",
        "RepoTags": [
            "fpco/stack-build:lts-4.0"
        ],
        "RepoDigests": [],
        "Parent": "84210066fb26b68aed1352f3891d5588fc75e98c476aae55a9e7e1ce7852ac24",
        "Comment": "",
        "Created": "2016-01-08T01:00:47.139099142Z",
        "Container": "34c5a22379dc5bf4813154ba754f50cbeb7863341ccb9b1c64aad48be28fbc97",
        "ContainerConfig": {
            "Hostname": "b4c55b8e696b",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/opt/host/bin:/opt/stackage/lts-4/extra/bin:/opt/stackage/lts-4/ghc/bin:/opt/stackage/lts-4/tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "HOME=/root",
                "LANG=C.UTF-8",
                "LC_ALL=C.UTF-8"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) CMD [\"bash\"]"
            ],
            "Image": "178d0a25e74dd335517a6773345a5244bde285e40d46a042ee07253cfaf4e5bf",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": [],
            "Labels": null
        },
        "DockerVersion": "1.8.3",
        "Author": "Emanuel Borsboom \[email protected]\u003e",
        "Config": {
            "Hostname": "b4c55b8e696b",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/opt/host/bin:/opt/stackage/lts-4/extra/bin:/opt/stackage/lts-4/ghc/bin:/opt/stackage/lts-4/tools/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "HOME=/root",
                "LANG=C.UTF-8",
                "LC_ALL=C.UTF-8"
            ],
            "Cmd": [
                "bash"
            ],
            "Image": "178d0a25e74dd335517a6773345a5244bde285e40d46a042ee07253cfaf4e5bf",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": [],
            "Labels": null
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 0,
        "VirtualSize": 2761621994,
        "GraphDriver": {
            "Name": "aufs",
            "Data": null
        }
    }
    ]
    
  4. reopened this on Jan 8, 2016
  5. 3noch commented on Jan 8, 2016

    @3noch
    Member

    Seems like "Entrypoint": null is the culprit, but don't you guys (stack team) make these containers?

  6. mgsloan commented on Jan 8, 2016

    @mgsloan
    Contributor

    Must be an OS X specific thing, I'm using stack's docker support fine with 1.9.1, on ubuntu 15.10.

    Pinging @borsboom

  7. added this to the P2: Should milestone on Jan 8, 2016
  8. borsboom commented on Jan 8, 2016

    @borsboom
    Contributor

    I'll bet we're being bit by haskell/aeson#287. This only seems to happen when stack is built using LTS 4, and with the fpco/stack-*:lts-4 images that no longer have an entrypoint set.

  9. self-assigned this
    on Jan 8, 2016
  10. borsboom commented on Jan 8, 2016

    @borsboom
    Contributor

    Should be fixed in latest master. Please re-open if the fix doesn't work for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions