-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
980 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: page | ||
title: linux/ip6tables-restore (English) | ||
description: "This command is an alias of `iptables-restore` for the IPv6 firewall." | ||
content_hash: 1248ca8918550e33af482cb6d98cc403f63739cb | ||
last_modified_at: 2023-09-18 | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># ip6tables-restore | ||
|
||
This command is an alias of `iptables-restore` for the IPv6 firewall. | ||
|
||
- View documentation for the original command: | ||
|
||
`tldr iptables-restore` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: page | ||
title: linux/ip6tables-save (English) | ||
description: "This command is an alias of `iptables-save` for the IPv6 firewall." | ||
content_hash: f8072d257fc698a4e0218d1d8693a3e688e3360f | ||
last_modified_at: 2023-09-18 | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># ip6tables-save | ||
|
||
This command is an alias of `iptables-save` for the IPv6 firewall. | ||
|
||
- View documentation for the original command: | ||
|
||
`tldr iptables-save` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: page | ||
title: linux/ip6tables (English) | ||
description: "This command is an alias of `iptables` for the IPv6 firewall." | ||
content_hash: 19aa0a29dc5713429c82a2967d17d38f56112c09 | ||
last_modified_at: 2023-09-18 | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># ip6tables | ||
|
||
This command is an alias of `iptables` for the IPv6 firewall. | ||
|
||
- View documentation for the original command: | ||
|
||
`tldr iptables` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
layout: page | ||
title: linux/iptables-restore (English) | ||
description: "Restore the `iptables` IPv4 configuration." | ||
content_hash: 1907e409314e01ff35bb1f58c0bedd34ab3c6b15 | ||
last_modified_at: 2023-09-18 | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># iptables-restore | ||
|
||
Restore the `iptables` IPv4 configuration. | ||
Use `ip6tables-restore` to do the same for IPv6. | ||
More information: <https://manned.org/iptables-restore>. | ||
|
||
- Restore the `iptables` configuration from a file: | ||
|
||
`sudo iptables-restore `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file</span> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
layout: page | ||
title: linux/iptables-save (English) | ||
description: "Save the `iptables` IPv4 configuration." | ||
content_hash: 1d8e24437410e5427585238ac9454a33f4b73cf4 | ||
last_modified_at: 2023-09-18 | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># iptables-save | ||
|
||
Save the `iptables` IPv4 configuration. | ||
Use `ip6tables-save` to to the same for IPv6. | ||
More information: <https://manned.org/iptables-save>. | ||
|
||
- Print the `iptables` configuration: | ||
|
||
`sudo iptables-save` | ||
|
||
- Print the `iptables` configuration of a specific [t]able: | ||
|
||
`sudo iptables-save --table `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">table</span> | ||
|
||
- Save the `iptables` configuration to a [f]ile: | ||
|
||
`sudo iptables-save --file `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">path/to/file</span> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
layout: page | ||
title: linux/systemd-detect-virt (English) | ||
description: "Detect execution in a virtualized environment." | ||
content_hash: e585ff3c1fe99f79ac66bd9166be06542e4decb6 | ||
last_modified_at: 2023-09-18 | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># systemd-detect-virt | ||
|
||
Detect execution in a virtualized environment. | ||
More information: <https://www.freedesktop.org/software/systemd/man/systemd-detect-virt.html>. | ||
|
||
- List detectable virtualization technologies: | ||
|
||
`systemd-detect-virt --list` | ||
|
||
- Detect virtualization, print the result and return a zero status code when running in a VM or a container, and a non-zero code otherwise: | ||
|
||
`systemd-detect-virt` | ||
|
||
- Silently check without printing anything: | ||
|
||
`systemd-detect-virt --quiet` | ||
|
||
- Only detect container virtualization: | ||
|
||
`systemd-detect-virt --container` | ||
|
||
- Only detect hardware virtualization: | ||
|
||
`systemd-detect-virt --vm` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: page | ||
title: common/podman-build (português (Brasil)) | ||
description: "Ferramenta sem daemon para criar imagens de contêiner." | ||
content_hash: e6096082b7289dc67d99e57f422fdd8692e8e9e4 | ||
last_modified_at: 2023-09-18 | ||
related_topics: | ||
- title: English version | ||
url: /en/common/podman-build.html | ||
icon: bi bi-globe | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># podman build | ||
|
||
Ferramenta sem daemon para criar imagens de contêiner. | ||
O Podman fornece uma linha de comando comparável ao Docker-CLI. Simplificando: `alias docker=podman`. | ||
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-build.1.html>. | ||
|
||
- Criar uma imagem usando um `Dockerfile` ou `Containerfile` no diretório especificado: | ||
|
||
`podman build `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span> | ||
|
||
- Criar uma imagem com uma tag especificada: | ||
|
||
`podman build --tag `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome_da_imagem:versão</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span> | ||
|
||
- Criar uma imagem a partir de um arquivo não padrão: | ||
|
||
`podman build --file `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">Containerfile.diferente</span>` .` | ||
|
||
- Criar uma imagem sem usar nenhuma imagem em cache previamente: | ||
|
||
`podman build --no-cache `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span> | ||
|
||
- Criar uma imagem suprimindo todas as saídas: | ||
|
||
`podman build --quiet `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/diretório</span> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
layout: page | ||
title: common/podman-compose (português (Brasil)) | ||
description: "Executar e gerenciar definição de contêineres Compose Specification." | ||
content_hash: 387e2054760d423cf389efe0299ef85099eef93d | ||
last_modified_at: 2023-09-18 | ||
related_topics: | ||
- title: English version | ||
url: /en/common/podman-compose.html | ||
icon: bi bi-globe | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># podman-compose | ||
|
||
Executar e gerenciar definição de contêineres Compose Specification. | ||
Mais informações: <https://github.com/containers/podman-compose>. | ||
|
||
- Listar todos os contêineres em execução: | ||
|
||
`podman-compose ps` | ||
|
||
- Criar e iniciar todos os contêineres em segundo plano usando um arquivo `docker-compose.yml` local: | ||
|
||
`podman-compose up -d` | ||
|
||
- Iniciar todos os contêineres, fazendo o build se necessário: | ||
|
||
`podman-compose up --build` | ||
|
||
- Iniciar todos os contêineres usando um arquivo de composição alternativo: | ||
|
||
`podman-compose `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">caminho/para/arquivo</span>` up` | ||
|
||
- Parar todos os contêineres em execução: | ||
|
||
`podman-compose stop` | ||
|
||
- Remover todos os contêineres, redes e volumes: | ||
|
||
`podman-compose down --volumes` | ||
|
||
- Acompanhar logs de um contêiner (omitir todos os nomes de contêineres): | ||
|
||
`podman-compose logs --follow `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome_do_contêiner</span> | ||
|
||
- Executar um comando único em um serviço sem mapear portas: | ||
|
||
`podman-compose run `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome_do_serviço</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">comando</span> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
layout: page | ||
title: common/podman-image (português (Brasil)) | ||
description: "Gerenciar imagens Docker." | ||
content_hash: 30a79b11f7eb87e8c2c1c29170307a107a64e8b6 | ||
last_modified_at: 2023-09-18 | ||
related_topics: | ||
- title: English version | ||
url: /en/common/podman-image.html | ||
icon: bi bi-globe | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># podman image | ||
|
||
Gerenciar imagens Docker. | ||
Veja também `podman build`, `podman import` e `podman pull`. | ||
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-image.1.html>. | ||
|
||
- Listar imagens Docker locais: | ||
|
||
`podman image ls` | ||
|
||
- Excluir imagens Docker locais não utilizadas: | ||
|
||
`podman image prune` | ||
|
||
- Excluir todas as imagens não utilizadas (não apenas aquelas sem uma tag): | ||
|
||
`podman image prune --all` | ||
|
||
- Mostrar o histórico de uma imagem Docker local: | ||
|
||
`podman image history `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">imagem</span> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
layout: page | ||
title: common/podman-images (português (Brasil)) | ||
description: "Gerenciar imagens do Podman." | ||
content_hash: 3c1ed2fc664f5b87c1dd4e148b11f0baddf93fa7 | ||
last_modified_at: 2023-09-18 | ||
related_topics: | ||
- title: English version | ||
url: /en/common/podman-images.html | ||
icon: bi bi-globe | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># podman images | ||
|
||
Gerenciar imagens do Podman. | ||
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-images.1.html>. | ||
|
||
- Listar todas as imagens do Podman: | ||
|
||
`podman images` | ||
|
||
- Listar todas as imagens do Podman, incluindo intermediárias: | ||
|
||
`podman images --all` | ||
|
||
- Listar a saída no modo silencioso (apenas IDs numéricos): | ||
|
||
`podman images --quiet` | ||
|
||
- Listar todas as imagens do Podman que não são utilizadas por nenhum contêiner: | ||
|
||
`podman images --filter dangling=true` | ||
|
||
- Listar imagens que contenham uma substring em seus nomes: | ||
|
||
`podman images "`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">*imagem|imagem*</span>`"` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
layout: page | ||
title: common/podman-machine (português (Brasil)) | ||
description: "Criar e gerenciar máquinas virtuais executando o Podman." | ||
content_hash: fa9cd6e7c188f0d40f588f65b6d5ed896e898931 | ||
last_modified_at: 2023-09-18 | ||
related_topics: | ||
- title: English version | ||
url: /en/common/podman-machine.html | ||
icon: bi bi-globe | ||
--- | ||
|
||
This entry is very new in the [tldr-pages](https://github.com/tldr-pages/tldr) project, hence translation data is currently unavailable for a while. | ||
|
||
<hr># podman machine | ||
|
||
Criar e gerenciar máquinas virtuais executando o Podman. | ||
Incluído com a versão 4 ou superior do Podman. | ||
Mais informações: <https://docs.podman.io/en/latest/markdown/podman-machine.1.html>. | ||
|
||
- Listar as máquinas existentes: | ||
|
||
`podman machine ls` | ||
|
||
- Criar uma nova máquina padrão: | ||
|
||
`podman machine init` | ||
|
||
- Criar uma nova máquina com um nome específico: | ||
|
||
`podman machine init `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span> | ||
|
||
- Criar uma nova máquina com recursos diferentes: | ||
|
||
`podman machine init --cpus=`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">4</span>` --memory=`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">4096</span>` --disk-size=`<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">50</span> | ||
|
||
- Iniciar ou parar uma máquina: | ||
|
||
`podman machine `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">start|stop</span>` `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span> | ||
|
||
- Conectar-se a uma máquina em execução via SSH: | ||
|
||
`podman machine ssh `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span> | ||
|
||
- Inspecionar informações sobre uma máquina: | ||
|
||
`podman machine inspect `<span class="tldr-var badge badge-pill bg-dark-lm bg-white-dm text-white-lm text-dark-dm font-weight-bold">nome</span> |
Oops, something went wrong.