Categories
Docker HOW TO Linux Microsoft PowerShell

HOW TO switch between Linux and Windows containers in Docker Enterprise Edition

Out of the box, when you install Docker Enterprise Edition (EE) will run Windows containers. To switch between Windows and Linux containers you need to run the below PowerShell commands with elevated privileges:

To switch to Linux containers

[Environment]::SetEnvironmentVariable("LCOW_SUPPORTED", "1", "Machine")

and then Restart docker service

Restart-Service docker

To switch to Windows containers

[Environment]::SetEnvironmentVariable("LCOW_SUPPORTED", $null, "Machine")

and then Restart docker service

Restart-Service docker

Did my HOW TO help you? Leave a reply.

Categories
Blog Linux Unix WordPress

Failed to write session data

Warning: Unknown: open(/home/content/123456/123456/tmp/sess_abc123456abc123456, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

Cause:
In my case these warnings appeared after I migrate my website in GoDaddy.

Solution:
Contact the support of your provider and ask to create the folder

/home/content/123456/123456/tmp

as from the error message (I inserted 123456 for example, in you case number will be different).

Did my solution solve your problem? Leave a comment.