Skip to content
This repository was archived by the owner on Feb 11, 2019. It is now read-only.
This repository was archived by the owner on Feb 11, 2019. It is now read-only.

use ENTRYPOINT in build to fake uname #18

@grooverdan

Description

@grooverdan

suggestion to your script:

~/docker-32bit-ubuntu$ cat ubuntu.tgz | ./docker import --message "Build with https://github.com/docker-32bit/ubuntu" --change 'ENTRYPOINT ["/usr/bin/linux32","sh","-c"]'  -   32bit/ubuntu:xenial
sha256:acac9916eca1fad229ed19f98861ee8738267e39593d19cd481b59f5da67fd27

~/docker-32bit-ubuntu$ docker run -ti 32bit/ubuntu:xenial 'uname -a'
Linux 60efb58996e4 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 i686 i686 i686 GNU/Linux

requires newer docker version after moby/moby/issues/27789

tested with:

./docker --version
Docker version 17.04.0-dev, build 7fb83eb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions