All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Listar armazenamentos WSL existentes | |
```bash | |
wsl --list -v | |
Saída esperada: | |
plaintext | |
Copy code | |
NOME ESTADO VERSÃO | |
* docker-desktop Executando 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Caminho para o arquivo de swap dentro da pasta pessoal do usuário | |
SWAPFILE_PATH="$HOME/.swap/swapfile" | |
# Tamanho do arquivo de swap (ajuste conforme necessário) | |
SWAPFILE_SIZE="8G" # Por exemplo, 8GB | |
# Criar a pasta .swap na pasta pessoal, caso ela não exista | |
mkdir -p "$HOME/.swap" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER nome_do_usuario WITH PASSWORD 'senha_do_usuario'; | |
GRANT ALL PRIVILEGES ON DATABASE nome_do_banco_de_dados TO nome_do_usuario; |