docker and WSL
WSL
sudo pass: 1234
wslview package opens the fil or dir with the default program set in windows.
resource management
WSL appears to leak a lot of memory when left running a lot of time
- limit resources by creating and editing the
~/.wslconfigfile - restart wsl
wsl --shutdown - then WSL (ubuntu) cache can get pretty big. inspect with
freecommand and clean withecho 3 | sudo tee /proc/sys/vm/drop_caches
Docker
para "entrar" a un contenedor:
docker exec -it 10d bash para entrar como root: docker exec -u 0 -it 10d bash
ver rutas de donde se ejecuto docker compose up:
docker compose ls
copy a file into a docker container
docker cp ./ohrm_backup.sql mariadb:/home
// crear imagen versionando (Necesita un archivo Dockerfile)
docker build -t php-test .
docker build -t php-test:0.1 .
working with volumes
dentro del servidor : dentro del docker