Skip to content

Allowing more than one cpu core when using docker-compose up #3306

Closed

Description

@Nokel81

Using the docker compose yml file I am able to use the option cpuset: "1" but it come back with the following error "ERROR: Requested CPUs are not available - requested 1, available: 0.".

I have not been able to find a documented source for how to premiss (make available) more cores. Is there a method for this?

Activity

  1. dnephin commented on Apr 11, 2016

    @dnephin

    What's the output of docker info and docker version ?

    I think some other container may be holding those resources.

  2. Nokel81 commented on Apr 11, 2016

    @Nokel81
    Author

    docker info

    Containers: 29
    Images: 91
    Server Version: 1.9.1
    Storage Driver: aufs
     Root Dir: /mnt/sda1/var/lib/docker/aufs
     Backing Filesystem: extfs
     Dirs: 153
     Dirperm1 Supported: true
    Execution Driver: native-0.2
    Logging Driver: json-file
    Kernel Version: 4.1.13-boot2docker
    Operating System: Boot2Docker 1.9.1 (TCL 6.4.1); master : cef800b - Fri Nov 20 19:33:59 UTC 2015
    CPUs: 1
    Total Memory: 1.956 GiB
    Name: default
    ID: GFKY:TDIU:V54K:3KTX:65IA:LHML:GJUY:6ZF7:WSHJ:NUO3:Z2CD:TRVC
    Debug mode (server): true
     File Descriptors: 189
     Goroutines: 459
     System Time: 2016-04-11T15:43:33.016405912Z
     EventsListeners: 1
     Init SHA1: 
     Init Path: /usr/local/bin/docker
     Docker Root Dir: /mnt/sda1/var/lib/docker
    Labels:
     provider=virtualbox
    

    docker version

    Client:
     Version:      1.9.1
     API version:  1.21
     Go version:   go1.4.3
     Git commit:   a34a1d5
     Built:        Fri Nov 20 17:56:04 UTC 2015
     OS/Arch:      darwin/amd64
    
    Server:
     Version:      1.9.1
     API version:  1.21
     Go version:   go1.4.3
     Git commit:   a34a1d5
     Built:        Fri Nov 20 17:56:04 UTC 2015
     OS/Arch:      linux/amd64
    
  3. TigerWiki commented on May 8, 2017

    @TigerWiki

    Use cpuset: "0"

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