Given an inspect containing this:
"VolumesRW": {
"/foo": true,
"/bar": true,
"/baz": false
},
VolumesRW will not be deserialized correctly. The accessMode on the /baz volume will be set to rw instead of ro.
So, this logic doesn't work:
|
return Volume.parse(field.getKey()); |
It needs to take the value into account, not just the key.
Given an inspect containing this:
VolumesRW will not be deserialized correctly. The accessMode on the
/bazvolume will be set torwinstead ofro.So, this logic doesn't work:
docker-java/src/main/java/com/github/dockerjava/api/model/Volume.java
Line 107 in 8c948b1
It needs to take the value into account, not just the key.