docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 292 forks source link

Cannot switch to Linux Containers - no memory #2217

Closed CaroRob closed 5 years ago

CaroRob commented 6 years ago

Expected behavior

Ability to switch to Linux container so I can install docassemble

Actual behavior

docker whale turns red and I get a message "Not enough memory, free up memory or change settings."

Information

I checked documentation and troubleshoot, I have done everything I understand how to do on my machine, Enable virtualization in the BIOS I keep changing the memory setting in MobyLinux Hyper-VM - it doesn't stick I turn off everything possible to free up memory - no dropbox, no google drive, no McAfee, no Word, no chrome, I need linux containers to work so I can run docassemble. I have not reset Docker to original factory defaults - as it was when first installed, cause I think it is still as it was. Please, help us understand the problem. For instance:

Steps to reproduce the behavior

  1. When I first start my laptop, as it is warming up Docker says it is not running, do I want to start and can it start in ex....- can't remember the word. I say OK and OK again when Windows asks if it's ok for Docker to make changes on the machine
  2. I ask to switch to Linux containers
  3. I get the error and red whale out of memory

Copied log file into issue - GitHub error: body too long Selected log file to attach (log.txt) - GitHub error: We don't support that file type. Try again with a GIF, JPEG.......TXT.... or ZIP. WTF? Have renamed log file with extension .TXT log.TXT

jhpyle commented 6 years ago

How much memory does your Windows 10 machine have?

CaroRob commented 6 years ago

Installed memory (RAM): 4.00 GB (3.71 GB usable)

CaroRob commented 6 years ago

sorry clicked wrong button.

jhpyle commented 6 years ago

I'm not an expert on Docker for Windows, but I have used it on Windows 10 (on a machine with 8 GB of RAM) and it hasn't given me any problems.

You could try the advice on this stackoverflow topic if you haven't already.

Docassemble itself requires at least 2GB of memory to be allocated to it, so if and when you get Docker up and running, go to Settings -> Advanced and make sure the memory is set to at least 2048MB.

I have never tried Docker for Windows on a machine with 4GB of RAM, so it is possible that 4GB is not enough; I don't know.

CaroRob commented 6 years ago

Thanks @jhpyle, Yes, I tried everything in that post - except downgrading Docker version which was the last suggestion. Somehow I doubt that will be the solution, given other posts that suggest we use the latest greatest version if having the out of memory issue.

jhpyle commented 6 years ago

I'm using the latest version of Docker for Windows and it doesn't give me any memory errors.

I've never had to do the "switch" operation between Windows containers and Linux containers; it has always been set to Linux containers.

As I said, I am not an expert, but two ideas that you could try if you haven't already: 1) Settings -> Reset -> Reset to factory defaults; 2) Uninstall the whole application, reboot, run Windows Update, then reinstall Docker.

Also, if Windows 10 Docker doesn't work out, you could go on DigitalOcean or Amazon Web Services and create a Linux VM there, and SSH to it.

CaroRob commented 6 years ago

Thanks Jonathan for such persistent help. Already tried 1) Reset to factory defaults. Haven't yet Tried uninstalling and reinstalling because... time.

However, my workstudy student has set up both development and production servers for us on DigitalOcean and I am learning docassemble on the development server fingers crossed I don't bring the whole thing tumbling down - as warned in your docassemble documentation. ;)

preshi commented 6 years ago

Hi CaroRob. I am also facing the same issue. Please share the troubleshooting steps if you are able to resolve the issue.

CaroRob commented 6 years ago

Never resolved. but reformatting computer over next 3 weeks - Hoping in October if I try again it will work.

Good Luck - to all of us!

Caroline

Caroline Robinson Codirector, Massachusetts Legal Aid Websites Project Editor, MassLegalHelp.org http://www.masslegalhelp.org/ (857) 267-3171 8am-3pm M-F

--One should aim not at being possible to understand, but at being impossible to misunderstand. Quintilian

Join us for MLRI's 50th anniversary celebration https://connect.clickandpledge.com/w/Form/9aafdc5e-e76a-4fde-9e57-8d209c3f7586 on September 26th!

On Mon, Sep 10, 2018 at 12:58 PM, Prasanth Perumalla < notifications@github.com> wrote:

Hi CaroRob. I am also facing the same issue. Please share the troubleshooting steps if you are able to resolve the issue.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/2217#issuecomment-419984852, or mute the thread https://github.com/notifications/unsubscribe-auth/ATP3_wANS7QDmLByknP2L-O9AqDWU7DUks5uZposgaJpZM4VSXpQ .

jhpyle commented 6 years ago

Hi @preshi -- if you are trying to get docassemble to work, I would recommend not spending very much time trying to get it to run inside Docker for Windows. Docassemble is a server application and there are a lot of dangers with unsafe shutdowns if you run it in a desktop environment. If you have a HyperV server, I would recommend making a Linux VM on it and then installing Docker on the Linux VM. Or you could use a service like Docassemble Toolkit, or run Docker from a Linux VM on AWS/Azure/Digital Ocean/etc.

docker-robott commented 5 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott commented 4 years ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked