#docker (2021-04)
All things docker
Archive: https://archive.sweetops.com/docker/
2021-04-10
![mikesew avatar](https://secure.gravatar.com/avatar/735f27b55681e06ef0dcbc0ab146cd49.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0006-72.png)
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](https://avatars.slack-edge.com/2023-02-06/4762019351860_44dadfaff89f62cba646_72.jpg)
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.
![Issif avatar](https://avatars.slack-edge.com/2019-12-02/848866457345_6b17c415c518a84814ce_72.png)
same
![Issif avatar](https://avatars.slack-edge.com/2019-12-02/848866457345_6b17c415c518a84814ce_72.png)
I stopped using it, now I’m starting a VM with multipass and use it for Docker
![Matt Gowie avatar](https://avatars.slack-edge.com/2023-02-06/4762019351860_44dadfaff89f62cba646_72.jpg)
Ooof
![Matt Gowie avatar](https://avatars.slack-edge.com/2023-02-06/4762019351860_44dadfaff89f62cba646_72.jpg)
I feel like it didn’t used to be this way…
![Issif avatar](https://avatars.slack-edge.com/2019-12-02/848866457345_6b17c415c518a84814ce_72.png)
¯_(ツ)_/¯
![jose.amengual avatar](https://secure.gravatar.com/avatar/32f267b819eac9e0ea6a8324b53064a0.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0024-72.png)
I run one command like ls
on geodesic or other docker image and my CPU is 100%
![jose.amengual avatar](https://secure.gravatar.com/avatar/32f267b819eac9e0ea6a8324b53064a0.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0024-72.png)
and it will stay there for a long while
![sheldonh avatar](https://secure.gravatar.com/avatar/b909e5a82474e9853ff6a6c6111cf0cf.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0020-72.png)
YES
![sheldonh avatar](https://secure.gravatar.com/avatar/b909e5a82474e9853ff6a6c6111cf0cf.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0020-72.png)
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](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
I suspect it could be due to host mounted volumes
![Marcin Brański avatar](https://secure.gravatar.com/avatar/7f3c56304d6e3adb7658889af56cd171.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0001-72.png)
I have the same problem, even without any mounted volumes. Is there any issue on docker GH to follow?
![Matt Gowie avatar](https://avatars.slack-edge.com/2023-02-06/4762019351860_44dadfaff89f62cba646_72.jpg)
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](https://avatars.slack-edge.com/2023-02-06/4762019351860_44dadfaff89f62cba646_72.jpg)
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.
![Issif avatar](https://avatars.slack-edge.com/2019-12-02/848866457345_6b17c415c518a84814ce_72.png)
thanks for the tip, I’ll try
![Marcin Brański avatar](https://secure.gravatar.com/avatar/7f3c56304d6e3adb7658889af56cd171.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0001-72.png)
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](https://avatars.slack-edge.com/2020-10-28/1453157962374_67b9b13d23898f6d2fda_72.png)
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
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…
![attachment image](https://miro.medium.com/max/1200/1*R4MNksNi5CWIo51oHuN7RA.png)
Docker for Mac has some long-lasting performance issues (ever since the launch in 2016) due to the way volume file sharing works. There…
![attachment image](https://miro.medium.com/max/1200/1*EDNkjL2LFXqgbkXkwwTiJA.jpeg)
Using Docker on a Mac in 2020 is comparable to having a 2009 Peugeot 1007 in 2020. I would know for i have both.
![Yoni Leitersdorf (Indeni Cloudrail) avatar](https://avatars.slack-edge.com/2020-08-26/1310888406231_2dc8c60843ac09dc06bb_72.jpg)
@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
![Matt Gowie avatar](https://avatars.slack-edge.com/2023-02-06/4762019351860_44dadfaff89f62cba646_72.jpg)
@Yoni Leitersdorf (Indeni Cloudrail) glad it helped!
![Matt Gowie avatar](https://avatars.slack-edge.com/2023-02-06/4762019351860_44dadfaff89f62cba646_72.jpg)
This looks to be one of the recently gaining steam issues in this regard: https://github.com/docker/for-mac/issues/3677
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](https://secure.gravatar.com/avatar/b909e5a82474e9853ff6a6c6111cf0cf.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0020-72.png)
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 ¯_(ツ)_/¯