Linux:Services: Difference between revisions

From Cheatsheet
Jump to navigationJump to search
(Created page with "Cheatsheets == MAAS == === Checks === <pre> Logs in either place: /var/log/maas/ /var/snap/maas/common/log </pre> <syntaxhighlight lang="bash"> # List status of MAAS services maas status # List MAAS commands maas --help # List available arguments for the init command maas init --help </syntaxhighlight> == Docker == === Checks === <syntaxhighlight lang="bash"> # List docker containers docker ps </syntaxhighlight> === Commands === <syntaxhigh...")
 
No edit summary
Line 1: Line 1:
[[Category:Cheatsheet|Cheatsheets]]
[[Category:Cheatsheet|Cheatsheets]]
== Docker ==
=== Checks ===
<syntaxhighlight lang="bash">
# List docker containers
docker ps
</syntaxhighlight>
=== Commands ===
<syntaxhighlight lang="bash">
# Enter the shell inside a docker container
docker exec -ti a89sd98sa7d /bin/bash
# Execute a command inside a container as a specific user
docker exec -it -u root asd87289hasdadz tail /var/log/nginx/access.log
</syntaxhighlight>
== PowerDNS ==


== MAAS ==
== MAAS ==
Line 18: Line 35:
# List available arguments for the init command
# List available arguments for the init command
maas init --help
maas init --help
</syntaxhighlight>
== Docker ==
=== Checks ===
<syntaxhighlight lang="bash">
# List docker containers
docker ps
</syntaxhighlight>
=== Commands ===
<syntaxhighlight lang="bash">
# Enter the shell inside a docker container
docker exec -ti a89sd98sa7d /bin/bash
# Execute a command inside a container as a specific user
docker exec -it -u root asd87289hasdadz tail /var/log/nginx/access.log
</syntaxhighlight>
</syntaxhighlight>

Revision as of 15:43, 22 August 2023

Docker

Checks

# List docker containers 
docker ps

Commands

# Enter the shell inside a docker container
docker exec -ti a89sd98sa7d /bin/bash

# Execute a command inside a container as a specific user
docker exec -it -u root asd87289hasdadz tail /var/log/nginx/access.log

PowerDNS

MAAS

Checks

Logs in either place:
/var/log/maas/
/var/snap/maas/common/log
# List status of MAAS services
maas status

# List MAAS commands
maas --help

# List available arguments for the init command
maas init --help