Docker cheatsheet.
-
To get the list of commands:
$ docker -
To search for images in docker index:
$ docker search tutorial
Docker cheatsheet.
To get the list of commands:
$ docker
To search for images in docker index:
$ docker search tutorial
| # I book marked some sites with useful Linux commands i found. | |
| # then i noticed they were down, so i loaded them via google cache, and copied here. | |
| # source: http://blog.urfix.com/ | |
| # source: http://www.pixelbeat.org/cmdline.html | |
| # Enjoy! | |
| # How to run process as background and never die | |
| # | |
| # nohup means: Do not terminate this process even when the stty is cut off. | |
| # > /dev/null means: stdout goes to /dev/null (which is a dummy device that does not record any output). |
| sssssss |
| testttttt |
| rpm (é o equivalente ao dpkg do Debian, ele que faz a base de instalação e remoção dos pacotes) | |
| MODOS (O rpm trabalha em modos, COM 3 MODOS PRINCIPAIS (modeo de consulta, instalacao e remocao) | |
| rpm -qa (mostra todos os pacotes instalados no sistema) | |
| rpm -qa bash (mostra informações do que tiver o nome "bash") | |
| rpm -qi bash (a opção i mostra informações, detalhes do aplicativo mencionado, no caso o "bash") | |
| rpm -ql bash (lista os arquivos que pertecem a essa instalação) | |
| rpm -qc bash (mostra apenas os arquivos de configuração do pacote) | |
| rpm -qd (mostra arquivos de documentação do pacote) | |
| rpm -qf /etc/skel/.bashrc (mostra qual aplicação instalou esse pacote, esse arquivo) | |
| rpm -qlp adobe-release-x86_64-1.0-1.noarch.rpm (lista os arquivos que estão dentro do pacote adobe) |
| $ ansible all -m ping -i inventory.yml | |
| localhost | SUCCESS => { | |
| "ansible_facts": { | |
| "discovered_interpreter_python": "/usr/bin/python3" | |
| }, | |
| "changed": false, | |
| "ping": "pong" | |
| } |
| $ ssh -i "docker01.pem" [email protected] | |
| Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-1045-aws x86_64) | |
| * Documentation: https://help.ubuntu.com | |
| * Management: https://landscape.canonical.com | |
| * Support: https://ubuntu.com/advantage | |
| System information as of Sun Feb 13 14:14:04 UTC 2022 | |
| System load: 0.08 Processes: 109 |
| $ ansible aws -m ping -i inventory.yml | |
| elliot01 | UNREACHABLE! => { | |
| "changed": false, | |
| "msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey).", | |
| "unreachable": true | |
| } |
| # ssh -i "docker01.pem" [email protected] | |
| Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-1045-aws x86_64) | |
| Last login: Sun Feb 13 14:49:42 2022 from 190.111.97.232 | |
| ubuntu@ip-172-31-13-58:~$ |
| //Official provider by Hashicorp | |
| provider "aws" { | |
| region = "us-east-1" | |
| shared_credentials_file = "/home/amaury/.aws/credentials" | |
| profile = "elliot" | |
| } |