for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker Desktop "Refreshing container files..." forever

Open michaelzolo opened this issue 1 year ago • 44 comments

Description

Instead of saying that the container is stopped, it seems like it's trying to access its files forever, saying "Refreshing container files..."

Reproduce

  1. Create container in Docker Desktop.
  2. Make sure it's stopped.
  3. Go to "Files" tab.

Expected behavior

Some comprehensive message saying that the container is stopped.

docker version

Docker Desktop 4.28.0 (139021) 

Docker EngiClient:
 Cloud integration: v1.0.35+desktop.11
 Version:           25.0.3
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        4debf41
 Built:             Tue Feb  6 21:13:00 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Desktop
 Engine:
  Version:          25.0.3
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       f417435
  Built:            Tue Feb  6 21:14:25 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.28
  GitCommit:        ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0ne
v25.0.3

docker info

Client:
 Version:    25.0.3
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1-desktop.4
    Path:     /usr/local/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.6-desktop.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container. (Docker Inc.)
    Version:  0.0.24
    Path:     /usr/local/lib/docker/cli-plugins/docker-debug
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.22
    Path:     /usr/local/lib/docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     /usr/local/lib/docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.0.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.5.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-scout
WARNING: Plugin "/usr/local/lib/docker/cli-plugins/docker-scan" is not valid: failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-scan: no such file or directory

Server:
 Containers: 22
  Running: 4
  Paused: 0
  Stopped: 18
 Images: 65
 Server Version: 25.0.3
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: 5.15.146.1-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 7.637GiB
 Name: docker-desktop
 ID: 44e76403-0c80-483c-9f4c-164ace199f46
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

Diagnostics ID

1A8B7A3C-92E8-40CC-8D2A-E723D974B0C5/20240408052411

Additional Info

No response

michaelzolo avatar Apr 08 '24 05:04 michaelzolo

same here

tommylge avatar Apr 10 '24 13:04 tommylge

same here

Doktror avatar May 02 '24 12:05 Doktror

same

LightDimf avatar May 07 '24 21:05 LightDimf

Happening on macos as well

Threebow avatar May 08 '24 17:05 Threebow

same

sunshineLi2019 avatar May 10 '24 08:05 sunshineLi2019

same

thanhliemtu avatar May 10 '24 09:05 thanhliemtu

I haven't heard anyone here mention a fix to it yet. If this issue still persists maybe try to do it on the docker cli until it gets fixed.

she11fish avatar May 10 '24 23:05 she11fish

same

solarcloud7 avatar May 13 '24 22:05 solarcloud7

same windows 11 22631.3593 and WSL2 Docker Desktop 4.30.0 (149282) I am kind of a novice, so when the container is stopped you can't view files? Well my container exits on error, and its erroring out because I need to edit a config. So how can I edit that config if the container is exiting itself? :s

Chaython avatar May 22 '24 04:05 Chaython

I have added a 9GB file because I need it to restore a DB in a MSSQL image, but updating the container files seems to take forever

if I try to open the folder where I have put the new file from the files tab, it does not open and the "expand" arrow just revets back to the horizontl position

Docker desktop v4.30.0

fabionapodano avatar Jun 02 '24 10:06 fabionapodano

Same here. I can see the files when the container is running but I cannot when it is stopped. Maybe it has something to do with that ?

GTziolas avatar Jun 03 '24 15:06 GTziolas

Same here, last docker desktop update broke it.

unseensenpai avatar Jun 05 '24 07:06 unseensenpai

Same here. Windows 10. Also have sign-in issue describe here: https://github.com/docker/for-mac/issues/7160

DavesClassyCode avatar Jun 08 '24 19:06 DavesClassyCode

Same here. I can see the files when the container is running but I cannot when it is stopped. Maybe it has something to do with that ?

Actually this seems to be the case for me as well. Though this guy does it in the course at 23:25 just fine: https://www.youtube.com/watch?v=GFgJkfScVNU

DavesClassyCode avatar Jun 08 '24 19:06 DavesClassyCode

Same here. I can see the files when the container is running but I cannot when it is stopped. Maybe it has something to do with that ?

Actually this seems to be the case for me as well. Though this guy does it in the course at 23:25 just fine: https://www.youtube.com/watch?v=GFgJkfScVNU

@DavesClassyCode I'm using Windows 11. Are you perhaps using Windows as well? The guy in the video seems to have Linux or Mac. If that's the case, maybe this problem is isolated for Windows host machines only

GTziolas avatar Jun 10 '24 10:06 GTziolas

I also have this issue but only on Windows machines, not Linux

matt-gribben avatar Jun 17 '24 01:06 matt-gribben

Same here. I can see the files when the container is running but I cannot when it is stopped. Maybe it has something to do with that ?

Actually this seems to be the case for me as well. Though this guy does it in the course at 23:25 just fine: https://www.youtube.com/watch?v=GFgJkfScVNU

@DavesClassyCode I'm using Windows 11. Are you perhaps using Windows as well? The guy in the video seems to have Linux or Mac. If that's the case, maybe this problem is isolated for Windows host machines only

Yes, I'm running Windows 10.

DavesClassyCode avatar Jun 20 '24 17:06 DavesClassyCode

Same here, i'm running Windows 11 machine

NicolaiHygino avatar Jun 21 '24 00:06 NicolaiHygino

Windows for me too. I have renounced to use Docker because of this bug.

fabionapodano avatar Jun 21 '24 11:06 fabionapodano

I'm using Windows 11. Are you perhaps using Windows as well? The guy in the video seems to have Linux or Mac. If that's the case, maybe this problem is isolated for Windows host machines only

@GTziolas I can confirm that it happens on MacOS, so I don't believe this problem is isolated to Windows hosts.

Threebow avatar Jun 21 '24 23:06 Threebow

I have this issue on Win 10.

I updated a file and made a typo, so the container wouldn't start. Now it's either "refreshing" or cyclically restarting.

Thank you, chatGPT: docker cp "C:\Users\server\Desktop\New folder\data\patcher.py" patcher-1.1.3:/app/patcher.py

Jon8RFC avatar Jun 24 '24 12:06 Jon8RFC

Same here, Win11.

intezya avatar Jun 26 '24 16:06 intezya

Yikes. I just noticed the significant cpu usage with containers off, too.

Jon8RFC avatar Jul 04 '24 00:07 Jon8RFC

Same here. OS: Windows 11

stephan-rz avatar Jul 05 '24 14:07 stephan-rz

MacOS Same here

sarahlunette avatar Jul 11 '24 15:07 sarahlunette

Same, Win 11

0xRixon avatar Jul 14 '24 12:07 0xRixon

Same, Win 11, Docker V4.32.0

pamanes avatar Jul 17 '24 18:07 pamanes

Same, macOS Sonoma 14.5, Docker V4.31

fightingxiaoxiao avatar Jul 23 '24 06:07 fightingxiaoxiao

Same Win 11, Docker Desktop 4.33.1

leonlubberdink avatar Aug 04 '24 18:08 leonlubberdink

Same here Win 11, Docker Desktop 4.33, ubuntu image

LostArrows27 avatar Aug 05 '24 09:08 LostArrows27