0

Does docker have a ram limit? Even as we specify in the parameter -memory? Because my docker, even if I give 55GB RAM, is up to 18GB (more or less), I use windows containers. I wonder if the --memory-swap flag would help or are there any settings in demon.json? I need to use 40GB

return await client.Containers.CreateContainerAsync(
                new CreateContainerParameters
                {
                    Env = environmentVariables,
                    Name = containerName,
                    Image = imageName,
                    ExposedPorts = new Dictionary<string, EmptyStruct>
                    {
                        {
                            "80", default(EmptyStruct)
                        }
                    },
                    HostConfig = new HostConfig
                    {
                        Memory = containerMemory,
                        Isolation = "process",
Rafał Developer
  • 2,015
  • 9
  • 38
  • 71
  • 2
    I never used Windows containers. If that works as classic containers on Windows and you use Docker Desktop without WSL2 integration, that may be related to the virtual machine's memory that is used to run containers. – AymDev Oct 13 '21 at 07:27

0 Answers0