Skip to content

failed to schedule when logging driver set to none #35093

@wyhysj

Description

@wyhysj

BUG REPORT INFORMATION

Description

Running in swarm mode
docker stack deploy -c docker-compose.yml postgres

  postgres:
    image: postgres
    environment:
      - POSTGRES_USER=user
      - POSTGRES_PASSWORD=secret
    **logging:
      driver: none**

ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
kbrxdl4v3lfh postgres_postgres.1 postgres:latest Running Pending 14 minutes ago

Service in Pending state forever

docker inspect kbrxdl4v3lfh

        "Status": {
            "Timestamp": "2017-10-05T07:29:52.322413745Z",
            "State": "pending",
            "Message": "no suitable node (**missing plugin on 20 nodes**; 1 node not available for new tasks)",
            "ContainerStatus": {},
            "PortStatus": {}
        },

Output of docker version:

Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:42:18 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:56 2017
 OS/Arch:      linux/amd64
 Experimental: false

Output of docker info:

Containers: 6
 Running: 3
 Paused: 0
 Stopped: 3
Images: 24
Server Version: 17.09.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
 NodeID: f8hptekyxppj4g96nhxx1b9jg
 Is Manager: true
 ClusterID: m21mo7xra5s25d4ocreol89bh
 Managers: 1
 Nodes: 3
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Number of Old Snapshots to Retain: 0
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
  Force Rotate: 0
 Autolock Managers: false
 Root Rotation In Progress: false
 Node Address: 10.65.0.218
 Manager Addresses:
  10.65.0.218:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-87-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 40
Total Memory: 125.8GiB
Name: swarm-manager
ID: 6T5S:24Z4:7JRM:APBN:PPNN:25KJ:DDAJ:TAEV:3DUX:JPSW:NHGY:NKYM
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/loggingarea/swarmkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.version/17.09

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions