-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Closed
Copy link
Labels
area/networkingNetworkingNetworkingarea/swarmkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
Description
Description
We are specifying a different docker root with -g, i.e. -g /data/docker/. It works, however docker is still recreating the /var/lib/docker folder and creates: /var/lib/docker/network/files/ingress_sbox.
Inside that folder are three files:
root@xxx:/var/lib/docker/network/files/ingress_sbox# ls -l
total 12
-rw-r--r-- 1 root root 150 Mar 7 13:18 hosts
-rw-r--r-- 1 root root 58 Mar 7 13:18 resolv.conf
-rw-r--r-- 1 root root 71 Mar 7 13:18 resolv.conf.hash
Steps to reproduce the issue:
- Create a swarm
- Create a service
Describe the results you received:
Docker is creating the /var/lib/docker folder.
Describe the results you expected:
Docker shouldn't create the /var/lib/docker folder.
Output of docker version:
Client:
Version: 17.03.0-ce
API version: 1.26
Go version: go1.7.5
Git commit: 3a232c8
Built: Tue Feb 28 08:01:32 2017
OS/Arch: linux/amd64
Server:
Version: 17.03.0-ce
API version: 1.26 (minimum version 1.12)
Go version: go1.7.5
Git commit: 3a232c8
Built: Tue Feb 28 08:01:32 2017
OS/Arch: linux/amd64
Output of docker info:
Containers: 20
Running: 6
Paused: 0
Stopped: 14
Images: 20
Server Version: 17.03.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
Swarm: active
NodeID: 9xet8ik8dju4y8786a2b3aemd
Is Manager: true
ClusterID: c935qq94yavddxpuc6292zbxu
Managers: 3
Nodes: 5
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: 172.31.70.70
Manager Addresses:
172.31.70.70:2377
172.31.71.70:2377
172.31.72.70:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-64-generic
Operating System: Ubuntu 16.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.952 GiB
Name: ip-172-31-70-70
ID: FMBW:VTZX:TIKD:2IDU:P23J:LAOZ:5PAX:ZUOT:WUIY:NTES:LX5W:VR76
Docker Root Dir: /data/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.):
Swarm is hosted in AWS, we are specifying a second EBS volume (which is encrypted) with -g.
Metadata
Metadata
Assignees
Labels
area/networkingNetworkingNetworkingarea/swarmkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.