#docker (2021-04)

docker

All things docker

Archive: https://archive.sweetops.com/docker/

2021-04-10

mikesew avatar
mikesew

Q: anybody have tips on dockerizing/containerizing a legacy app that doesn’t really separate it’s config/logs into separate folders? It installs only to a single dir (ie. /app/dpa) and I have to manually runs a web-installer to configure the DB repo first initial config.

# DPA-app Tree structure

/app
  /dpa_2021.12.709
    /logs
    /conf
    /license

How do people typically handle these sorts of scenarios where the app’s configs & data aren’t easily separated from the main binaries?

2021-04-16

Matt Gowie avatar
Matt Gowie

Does Docker for Mac seem to melt anyone elses machine like it does for me? I’ll be running one container which is just a shell (Geodesic) and my loadavg is pushing 15+ and idling there. I restart Docker enough now that it’s starting to drive me a bit crazy.

1
Issif avatar

same

Issif avatar

I stopped using it, now I’m starting a VM with multipass and use it for Docker

Matt Gowie avatar
Matt Gowie

Ooof

Matt Gowie avatar
Matt Gowie

I feel like it didn’t used to be this way…

Issif avatar
Issif
10:03:58 PM

¯_(ツ)_/¯

jose.amengual avatar
jose.amengual

I run one command like ls on geodesic or other docker image and my CPU is 100%

jose.amengual avatar
jose.amengual

and it will stay there for a long while

sheldonh avatar
sheldonh

YES

sheldonh avatar
sheldonh

I keep trying to use codespaces for local docker development and always end up just not using it due to CPU and all. I don’t want to clone in volume due to not being able to mount aws credentials and other configs, so ¯_(ツ)_/¯ …. i just end up using local.

I really want to try coder (remote workspaces) alternative to codespaces with cross platform tooling

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

I suspect it could be due to host mounted volumes

Marcin Brański avatar
Marcin Brański

I have the same problem, even without any mounted volumes. Is there any issue on docker GH to follow?

Matt Gowie avatar
Matt Gowie

I was looking around on Friday for issues in GH… it seems there are a number of them even some just as a recent as a few hours when I looked. I wonder why they’re hitting such bad performance issues recently….

Regardless, I’m glad I’m not the only one. “It works on my machine” for this type of issue would suck to hear.

Matt Gowie avatar
Matt Gowie
09:56:32 PM

For those of you suffering — I updated to this configuration (disabled “Use gRPC FUSE for file sharing”) in the Docker for Mac app and then restarted it seems to have chilled out my CPU usage to normal levels today. YMMV, but might be worth looking into.

2
Issif avatar

thanks for the tip, I’ll try

Marcin Brański avatar
Marcin Brański

Thanks @Matt Gowie I think it helped geodesic! But my other containers seems to be not catching up on changes on mounted volumes (like my jekyll blog ran via docker-compose)

David Lozano avatar
David Lozano

Yeah @Erik Osterman (Cloud Posse), I have found this high CPU usage related with docker bind-mounts. specially with big files and directories. here are some references. To solve this problem I started using Mutagen, which has been working flawless so far for me.

https://github.com/docker/roadmap/issues/7

https://medium.com/@marickvantuil/speed-up-docker-for-mac-with-mutagen-14c2a2c9cba7

https://medium.com/homullus/beating-some-performance-into-docker-for-mac-f5d1e732032c

[Docker Desktop] Improve Mac File system performance · Issue #7 · docker/roadmapattachment image

Update: we are now looking at using GRPCFuse rather than mutagen as a simpler path for perf improvement. Tell us about your request Integrate the mutagen pluggin within Docker Desktop to provide us…

Speed up Docker for Mac with Mutagenattachment image

Docker for Mac has some long-lasting performance issues (ever since the launch in 2016) due to the way volume file sharing works. There…

Beating some performance into Docker for Macattachment image

Using Docker on a Mac in 2020 is comparable to having a 2009 Peugeot 1007 in 2020. I would know for i have both.

1
Yoni Leitersdorf (Indeni Cloudrail) avatar
Yoni Leitersdorf (Indeni Cloudrail)

@Matt Gowie, implemented your suggestion yesterday, and am seeing a considerable improvement in docker start and execution times. Thank you for showing me I’m not crazy

2
Matt Gowie avatar
Matt Gowie

@Yoni Leitersdorf (Indeni Cloudrail) glad it helped!

Matt Gowie avatar
Matt Gowie

This looks to be one of the recently gaining steam issues in this regard: https://github.com/docker/for-mac/issues/3677

Bind mounts are really slow · Issue #3677 · docker/for-macattachment image

I have tried with the latest version of my channel (Stable or Edge) I have uploaded Diagnostics Diagnostics ID: CE10E9E0-4D58-4D8C-8533-82134EF088B2/20190520070056 Disk IO from/to container to/from…

sheldonh avatar
sheldonh

I looked at mutagen and docker sync the other day and dang none of this had an easy button, which is kinda what I wanted if I’m adding more complexity with docker based code projects with vscode.

I might try disabling the option @Matt Gowie mentioned. I’m surprised that was worse performance because I think it was supposed to similar or the same as mutagen providing better performance. Reverting to legacy, I’d expect worse performance not better ¯_(ツ)_/¯

2021-04-17

2021-04-18

2021-04-19

2021-04-20

2021-04-21

2021-04-29

    keyboard_arrow_up