Skip to content

Docker stack deploy with compose file (version 3) memory-swap/memory-swappiness issue #33742

@skorotan

Description

@skorotan

That is no possible to start container with memory-swap/memory-swappiness parameters using docker stack deploy

#test.yml file

version: "3"
services:

  ubuntu:
    image: ubuntu
    deploy:
        restart_policy:
            condition: none
        resources:
            limits:
                memory: 768M
                memory-swap: 1M

Steps to reproduce the issue:

  1. docker stack deploy -c test.yml test

Result
memory-swap Additional property memory-swap is not allowed

Describe the results you expected:
container is up and running

Output of docker version:
Client:
Version: 17.05.0-ce
API version: 1.29
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:06:25 2017
OS/Arch: linux/amd64

Server:
Version: 17.05.0-ce
API version: 1.29 (minimum version 1.12)
Go version: go1.7.5
Git commit: 89658be
Built: Thu May 4 22:06:25 2017
OS/Arch: linux/amd64
Experimental: true

Output of docker info:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 33
Server Version: 17.05.0-ce
Storage Driver: overlay
Backing Filesystem: extfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Swarm: active
NodeID: ****
Is Manager: true
ClusterID: ****
Managers: 1
Nodes: 1
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
Node Address: ****
Manager Addresses: ****
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9048e5e50717ea4497b757314bad98ea3763c145
runc version: 9c2d8d184e5da67c95d601382adf14862e4f2228
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-514.16.1.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 9.601GiB
Name: ***
ID: 2FXY:XP3H:UWFL:3R7U:CF5H:THXJ:XC5K:SZTS:U4LV:AY7D:3JNV:FOJF
Docker Root Dir: /docker
Debug Mode (client): false
Debug Mode (server): false
Http Proxy: ****
Https Proxy: ****
No Proxy: ****
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries: ****
Live Restore Enabled: false

Activity

ErezPasternak

ErezPasternak commented on Jul 2, 2017

@ErezPasternak

any plans to add this ?

cirocosta

cirocosta commented on Jul 17, 2017

@cirocosta
Contributor

First service createion should have memory-swap as I see. That can be tracked with this issue: #25303

added
kind/enhancementEnhancements are not bugs or new features but can improve usability or performance.
on Jul 20, 2017
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

    area/stackkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.version/17.05

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @thaJeztah@cirocosta@ErezPasternak@GordonTheTurtle@skorotan

        Issue actions

          Docker stack deploy with compose file (version 3) memory-swap/memory-swappiness issue · Issue #33742 · moby/moby