-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Container fails to start on ubuntu14.04 LTS due to memory.swappiness write (Swarm remote API only) #17879
Comments
Hi! Please read this important information about creating issues. 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. This is an automated, informational response. Thank you. For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues BUG REPORT INFORMATIONUse the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.): List the steps to reproduce the issue: Describe the results you received: Describe the results you expected: Provide additional info you think is important: ----------END REPORT --------- #ENEEDMOREINFO |
@abronan any ideas what can cause Swarm to act different here? |
Should I move this issue to docker/swarm? |
@jtwile2 we can wait a short while to see if someone of the swarm team can have a look |
I can repro this problem when running docker-machine from Ubuntu 14.04 LTS and the swarm machines are all CentOS 7.1 |
Is there a workaround in place? |
|
|
@johnjelinek Any way you can try with docker master? We just merged #18285 that is fixing this issue with swarm and compose. |
@abronan: do I need to deploy the master build to all of my swarm instances or just the box where I'm executing docker commands? |
@johnjelinek All of the swarm nodes unfortunately as the Swarm Manager just pass on the request to the selected node's daemon, so the If using |
@abronan: did flags to docker change?
|
oic, I changed |
@abronan: I upgraded docker on all the servers, but it didn't help:
|
…hanges svcplugin cleanup Merging this as sanity failure seem to be variation of moby/moby#17879
@abronan: how do I downgrade docker now? I tried replacing the binary and also with
|
my fault ... I needed to delete the newer docker binary from my path. |
This should be resolved in Swarm in docker-archive/classicswarm#1425 @jtwile2 thanks for reporting, I'm going to close this issue, because this if an issue in Swarm, and should be resolved. Please follow the discussion in docker-archive/classicswarm#1425, but feel free to comment here after I've closed |
Using latest docker-engine 1.9.0-0~trusty and swarm:1.0.0
Using the remote API, any version, containers fail to start when attempting to write to the cgroup memory.swappiness file. Commandline works fine. Bypassing swarm, using the same method against the docker daemon itself also works.
$ uname -a
Linux twile-dev 3.13.0-58-generic #97-Ubuntu SMP Wed Jul 8 02:56:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ docker -H 127.0.0.1:3333 info
Containers: 2
Images: 21
Role: primary
Strategy: spread
Filters: health, port, dependency, affinity, constraint
Nodes: 1
twile-dev: 172.17.42.1:2375
CPUs: 1
Total Memory: 4.054 GiB
Name: 72bb050260aa
Swarm
$ curl http://127.0.0.1:3333/v1.21/version
{"ApiVersion":"1.21","Arch":"amd64","GitCommit":"087e245","GoVersion":"go1.5.1","KernelVersion":"","Os":"linux","Version":"swarm/1.0.0"}
Engine
$ curl http://172.17.42.1:2375/v1.21/version
{"Version":"1.9.0","ApiVersion":"1.21","GitCommit":"76d6bc9","GoVersion":"go1.4.2","Os":"linux","Arch":"amd64","KernelVersion":"3.13.0-58-generic","BuildTime":"Tue Nov 3 17:43:42 UTC 2015"}
Swarm Create
$ curl -H "Content-Type: application/json" --data @create.json http://127.0.0.1:3333/v1.21/containers/create
{"Id":"ca3db5144cc283678b0daf7a753f7467d9e5065d9bd22e0475baca57c6dfc178"}
$ curl -H "Content-Type: application/json" --data "{}" http://127.0.0.1:3333/v1.21/containers/ca3db5144cc283678b0daf7a753f7467d9e5065d9bd22e0475baca57c6dfc178/start
Cannot start container ca3db5144cc283678b0daf7a753f7467d9e5065d9bd22e0475baca57c6dfc178: [8] System error: write /sys/fs/cgroup/memory/docker/ca3db5144cc283678b0daf7a753f7467d9e5065d9bd22e0475baca57c6dfc178/memory.swappiness: invalid argument
Engine Create
$ curl -H "Content-Type: application/json" --data @create_daemon.json http://172.17.42.1:2375/v1.21/containers/create
{"Id":"007409fe7ce29b377778d14654273941d15a689f0731eb2cfaf09e84d38e452a","Warnings":null}
$ curl -H "Content-Type: application/json" --data "{}" http://172.17.42.1:2375/v1.21/containers/007409fe7ce29b377778d14654273941d15a689f0731eb2cfaf09e84d38e452a/start
$
Swarm create JSON data
{
"Tty": false,
"AttachStderr": false,
"Netwo rkDisabled": false,
"Image": "mysql:latest",
"StdinOnce": false,
"HostConfig": {
"NetworkMode": "default",
"MemorySwap": -1,
"Memory": 1073741824
},
"AttachStdin": false,
"CpuShares": 1,
"AttachStdout": false,
"OpenStdin": false
}
Engine create JSON data
{
"Tty": false,
"AttachStderr": false,
"Netwo rkDisabled": false,
"Image": "mysql:latest",
"StdinOnce": false,
"HostConfig": {
"NetworkMode": "default",
"MemorySwap": -1,
"Memory": 1073741824
},
"AttachStdin": false,
"CpuShares": 1024,
"AttachStdout": false,
"OpenStdin": false
}
The text was updated successfully, but these errors were encountered: