gayanc
March 27, 2019, 11:58pm
21
No. I tried to you Amazon Linux instance instead of Moby Linux AMI. It worked fine for EFS, but after a while, it started giving some other issues that could be related to the docker network.
And they only recommend Moby Linux, so I don’t have a solution as of now.
And it is very difficult to troubleshoot as we have limited access to the host machine.
Yuck. Even with visibility on the host (mount /var/log inside a container) there aren’t a lot of details. It looks like the attempts to mount or access the EFS share just hang.
Hi this isn’t working for me either:
create scaling_mysql_data: VolumeDriver.Create: EFS support necessary for backing type: "shared"
I have created the cluster with the appropriate EFS setting:
/home/docker # docker plugin ls
ID NAME DESCRIPTION ENABLED
f16ca966fda3 cloudstor:aws cloud storage plugin for Docker true
And specified the proper mount config in a compose file:
volumes:
mysql_data:
driver: "cloudstor:aws"
driver_opts:
backing: shared
This is happening with the latest version:
/home/docker # docker info
Containers: 7
Running: 4
Paused: 0
Stopped: 3
Images: 6
Server Version: 18.09.2
Storage Driver: overlay2
Backing Filesystem: tmpfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: active
NodeID: d7q22xogoz6jk4rw5v9ps3t2l
Is Manager: true
ClusterID: t903fvdnxiwtk1xvs2xacg7g6
Managers: 1
Nodes: 6
Default Address Pool: 10.0.0.0/8
SubnetSize: 24
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 10
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: 172.31.28.163
Manager Addresses:
172.31.28.163:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce
runc version: 09c8266bf2fcf9519a651b04ae54c967b9ab86ec
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.114-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.2GiB
Name: ip-172-31-28-163.us-west-1.compute.internal
ID: VKSX:YNVB:V3QQ:4W7F:FLOP:GUWZ:2MFB:LRWM:B5F4:6RQA:ABA7:56CS
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
os=linux
region=us-west-1
availability_zone=us-west-1c
instance_type=m5.xlarge
node_type=manager
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine