Skip to content

docker 1.6.0: --ulimit stack=32768:32768 sets the limit to 32 #12957

Closed

Description

@ramonvanstijn

Description of problem:
When --ulimit stack=32768:32768 is used as an argument for the docker run command the container is configured with the stack size set to 32.

docker version:

Client version: 1.6.0
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): bdbc177
OS/Arch (client): linux/amd64
Server version: 1.6.0
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): bdbc177
OS/Arch (server): linux/amd64

docker info:

Containers: 4
Images: 18
Storage Driver: devicemapper
 Pool Name: docker-253:0-36666502-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 2.365 GB
 Data Space Total: 107.4 GB
 Data Space Available: 954.3 MB
 Metadata Space Used: 2.474 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 954.3 MB
 Udev Sync Supported: true
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Kernel Version: 3.10.0-229.1.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 4
Total Memory: 3.696 GiB
Name: dockerdev
ID: OTYA:LAVJ:W6RM:7ZKW:EPEQ:IQIJ:LYYD:UFHS:CZLQ:R5MV:GG36:YHGU

uname -a:

Linux dockerdev 3.10.0-229.1.2.el7.x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Environment details (AWS, VirtualBox, physical, etc.):
VMware virtual machine

How reproducible:

Steps to Reproduce:

  1. docker run --rm -it --ulimit stack=32768:32768 busybox sh
  2. / # ulimit -s

Actual Results:

32

Expected Results:

32768

Additional info:
In order to rule out a problem with the busybox image I have also tried using the ubuntu and centos images and they have the same problem.

Activity

  1. cpuguy83 commented on May 4, 2015

    @cpuguy83
    Member

    I think there's some serialization error on 1.6 that's causing this... can you check with a master binary?
    I've also seen it, when using a really high number, go to 0 (which is definitely fixed on master).

  2. ramonvanstijn commented on May 4, 2015

    @ramonvanstijn
    Author

    The problem persists with today's master binary.

    docker version

    Client version: 1.7.0-dev
    Client API version: 1.19
    Go version (client): go1.4.2
    Git commit (client): 56f7da3
    OS/Arch (client): linux/amd64
    Server version: 1.7.0-dev
    Server API version: 1.19
    Go version (server): go1.4.2
    Git commit (server): 56f7da3
    OS/Arch (server): linux/amd64
    
  3. dqminh commented on May 23, 2015

    @dqminh
    Contributor

    @ramonvanstijn I think the behavior is correct here. It sets the limit value as number of bytes, while ulimit reports the number of kb. So 32768 bytes == 32 kb

  4. ramonvanstijn commented on May 23, 2015

    @ramonvanstijn
    Author
  5. cpuguy83 commented on May 23, 2015

    @cpuguy83
    Member

    Pretty sure the max size issue is fixed on master, please test if you can.
    Builds master.dockerproject.com

  6. ramonvanstijn commented on May 24, 2015

    @ramonvanstijn
    Author

    Tested with the master binary from May 16th (today's master binary fails to
    start on my machine), the max size is indeed fixed in that version.

    2015-05-24 0:03 GMT+02:00 Brian Goff [email protected]:

    Pretty sure the max size issue is fixed on master, please test if you can.
    Builds master.dockerproject.com

    —
    Reply to this email directly or view it on GitHub
    #12957 (comment).

  7. thaJeztah commented on May 24, 2015

    @thaJeztah
    Member

    today's master binary fails to start on my machine

    There have been some big changes (integration of libnetwork and volume plugins), so it's possibly there are some temporary regressions, but don't hesitate to report any issue you encounter running those builds.

    @ramonvanstijn I'm going to close this issue because it has been resolved on master, but feel free to comment after it has been closed.

    (Wondering - You don't happen to be my cousin and born in Lisse? 😄)

  8. ramonvanstijn commented on May 26, 2015

    @ramonvanstijn
    Author

    @thaJeztah I was born in Utrecht, we could still be cousins though 😉

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

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