Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Synchronization and Backup Solutions

Tips and Traps

  1. Almost all sychronization tools have problems with symbolic links. Most of them just ignore symbolic links. This makes sense as following symbolic links can causes serious disk problems. If not followed then symbolic links are likely broken on other device. The simple suggestion is do not place …

Docker for Nvidia GPU

Instruction on Using Nvidia GPU (CUDA) for Computing in Docker

  1. Install Nvidia cuda-drivers (or equivalent) on your Linux machine following instructions at CUDA Downloads. Notice that instead of installing cuda (using sudo apt-get install cuda), it is suggested that you install cuda-drivers only (using sudo apt-get install cuda-drivers). This is …

Build Docker Images Using Kaniko

  1. Kaniko works differently from Docker. It runs inside a Docker container and detect and extract new layers to build Docker images. Since Kaniko manipulates the filesystem (layers) inside the Docker container, it can have unexpected side effect if not used carefully. For this reason, the developer team suggests users to …

WSL2 Filesystem

Performance Issue

The performance of IO is extremely bad if you access the the Windows filesystem from WSL 2. This is also true if you use Docker in WSL 2 (since Docker on WSL 2 share the same kernel as WSL 2). It is suggested that you stick to WSL …

Missing Grub Menu of Windows Operating System

I came across this problem after I installed both Debian and Windows 7 system on my laptop. After searching online, I found a solution to this problem. 1. Open /etc/default/grub as root user and make sure the following line is somewhere in the file and uncommented:

    GRUB_DISABLE_OS_PROBER=false …

Init for Docker Containers

** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **

Built-in Support

Docker has built-in support for init process (which is based on tini) now. In short, you just have to specify the option --init when you start a container using …