Skip to content

docker in docker don't re-use the device-write-bps or device-read-bps parameters from parent docker #20077

Closed

Description

@moylop260

Steps:

  1. Download a docker image with docker 1.10 server installed:
  2. Create a container docker-in-docker with device-write-bps and device-read-bps parameters.
    • $(serv-phy): docker run --privileged -v /home/mydocker-lib:/var/lib/docker --device-write-bps=/dev/sda:10mb --device-read-bps=/dev/sda:10mb -p 12376:2376 --name=dkr-in-dkr -d my-docker-server:1.10
  3. Run IO tests two times
    • $(serv-phy): docker exec -it dkr-in-dkr /bin/sh
    • #(dkr-in-dkr): time $(dd if=/dev/zero of=testfile0 bs=1000 count=100000 && sync) <- Result: real 0m0.284s
    • #(dkr-in-dkr): time $(dd if=/dev/zero of=testfile0 bs=1000 count=100000 && sync) <- Result: real 0m10.951s
  4. Create a container into of dkr-in-dkr container
    • #(dkr-in-dkr): docker run -it --name=subcontainer ubuntu:12.04 bash
  5. Run IO tests two times
    • ##(subcontainer): time $(dd if=/dev/zero of=testfile0 bs=1000 count=100000 && sync) <- Result: real 0m0.284s
    • ##(subcontainer): time $(dd if=/dev/zero of=testfile0 bs=1000 count=100000 && sync) <- Result: real 0m0.284s

Expected:

  • That ##(subcontainer) in the second time running IO test show: Result: real 0m10.951s inheriting device-read-bps and device-write-bps from parent container #(dkr-in-dkr)

Saw:

  • That ##(subcontainer) created in #(dkr-in-dkr) don't have restriction of I/O

Activity

  1. GordonTheTurtle commented on Feb 6, 2016

    @GordonTheTurtle
    Contributor

    If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.

    If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.

    For more information about reporting issues, see CONTRIBUTING.md.

    You don't have to include this information if this is a feature request

    (This is an automated, informational response)


    BUG REPORT INFORMATION

    Use the commands below to provide key information from your environment:

    docker version:
    docker info:

    Provide additional environment details (AWS, VirtualBox, physical, etc.):

    List the steps to reproduce the issue:
    1.
    2.
    3.

    Describe the results you received:

    Describe the results you expected:

    Provide additional info you think is important:

    ----------END REPORT ---------

    #ENEEDMOREINFO

  2. LK4D4 commented on Sep 14, 2016

    @LK4D4
    Contributor

    @Mashimiao Could you try to answer this question? Thanks!

  3. Mashimiao commented on Sep 27, 2016

    @Mashimiao
    Contributor

    @moylop260 can you support more information by docker version and docker info

  4. thaJeztah commented on Oct 29, 2016

    @thaJeztah
    Member

    Closing as we didn't receive more information, but happy to reopen once provided

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions