mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Fix mount issue in dockershim.
This commit is contained in:
parent
47e611b989
commit
ab502f32a7
@ -227,7 +227,8 @@ func (ds *dockerService) ContainerStatus(containerID string) (*runtimeApi.Contai
|
|||||||
|
|
||||||
// Convert the mounts.
|
// Convert the mounts.
|
||||||
mounts := []*runtimeApi.Mount{}
|
mounts := []*runtimeApi.Mount{}
|
||||||
for _, m := range r.Mounts {
|
for i := range r.Mounts {
|
||||||
|
m := r.Mounts[i]
|
||||||
readonly := !m.RW
|
readonly := !m.RW
|
||||||
mounts = append(mounts, &runtimeApi.Mount{
|
mounts = append(mounts, &runtimeApi.Mount{
|
||||||
Name: &m.Name,
|
Name: &m.Name,
|
||||||
|
Loading…
Reference in New Issue
Block a user