Day: December 26, 2021

LXC/LXD vs Docker

LXC/LXD vs Docker

Proxmox supports LXC, TrueNAS supports kubernates. The difference between LXC and docker container is, the LXC runs full OS without kernel, docker container only runs application.

Persistent docker container

Docker container also can be saved as image to be used next time. But the execution parameters can not be saved. To relaunch again, docker compose file can be a good choice if no change after container created.

LXC is persistent

LXC is a running VM sharing kernel and drivers with host, so OS and it's configue are in LXC.

The disadvantages of LXC are

References

LXC/LXD vs Docker Which is better?
Linux Container (LXC) Introduction

Turn on Hibernate in Windows 11

Turn on Hibernate in Windows 11

In post Turn on Hibernate in Windows 10, describe how to turn on Hibernate in Windows 10.

In Windows 11, even click on Change settings that are currently unavailable, Hibernate option is still missing.

Enable command

Run following command in Administrator command line to show the Hibernate option

powercfg /h /type full

References

How to Enable Hibernate Mode on Windows 11

Cooling Method: Positive Pressure vs Negative Pressure

Cooling Method: Positive Pressure vs Negative Pressure

Positive

Total air cumulatived by fans inwards the case.

Negative

Total air cumulatived by fans outwards the case.

Compare

Positive pressure can have better air flow direction. The dust comes from only inwards fans.

References

How To: Properly Plan And Pick Parts For An Air-Cooled PC, Part 2

Windows 11 on RAMOS

Windows 11 on RAMOS

To install Windows 11 on ramdisk, the software of ramdisk can be downloaded from https://www.romexsoftware.com/en-us/primo-ramdisk/.

In fact, I'm more interesting in RAM disk card.

References

How to install Windows 11 into memory instead of hard drive
【Fun科技】把Win11装在128G的内存条里:能跑的比PCIe5.0固态硬盘还要快么?

Docker vs Podman

Docker vs Podman

Daemon

Podman has no daemon, which can run under normal user.

Docker has daemon dockerd running as root.

Unix socket

Docker uses Unix socket /var/run/docker.sock

All the REST API commands are implemented using this socket.

For example,


`docker version` command is implemented via following API.

curl --unix-socket /var/run/docker.sock http:/v2/version



## References

[Watch on Captionz
what is podman vs docker (beginner - intermediate) anthony explains](https://youtu.be/lkg5QJsoCCQ)