-
Notifications
You must be signed in to change notification settings - Fork 12
Respuestas problemas 1 y 2 #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
65a2342
e4d4c78
5467141
65ce479
c5fe411
e1f0562
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
|
|
||
| - Image Size: | ||
| - Container Name: | ||
| - Container ID: | ||
| - Exposed port: | ||
| - Postgres version: | ||
| - Data Volume (aka PGDATA): | ||
| - default entrypoint: | ||
| - default command: | ||
| - baseline consumption : CPU ___% MEM ___MB | ||
| - OS: Distro Version Codename (Ubuntu 22.04 jammy) | ||
| - Image Size: 377Mb | ||
| - Container Name: festive_heisenberg | ||
| - Container ID: a09e501aa7d9 | ||
| - Exposed port: 5432 | ||
| - Postgres version: 15.0 | ||
| - Data Volume (aka PGDATA): /var/lib/postgresql/data | ||
| - default entrypoint: docker-entrypoint.sh | ||
| - default command: ["/bin/sh","-c","#(nop) ", "CMD [\"postgres\"]"] | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, é suficient con postgres, o resto é cacharrería interna de docker (agás o CMD) |
||
| - baseline consumption : CPU 0.00% MEM 940KiB | ||
| - OS: Debian 15.0-1.pgdg110+1 | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. o sistema operativo é Debian 11, pódese mirar dentro do container con |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,15 @@ | ||
| docker pull | ||
| docker pull postgres:latest | ||
| docker image ls postgres | ||
| docker run -it -e POSTGRES_HOST_AUTH_METHOD=trust --entrypoint /bin/bash postgres | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. o entrypoint aquí non impide lanzar un comando así que podes entrar con /bin/bash (non se lanzará o postgres pero non nos importa), ou lanzar e entrar despois con docker exec -it container_name /bin/bash |
||
|
|
||
| docker ps | ||
| docker image inspect postgres:latest | ||
|
|
||
| #Dentro del contenedor: | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. gracias polas aclaracións, queda máis lexible |
||
|
|
||
| postgres --version | ||
|
|
||
| # Para ver los recursos | ||
|
|
||
| docker container stats festive_heisenberg | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,8 @@ | ||
| REPOSITORY TAG IMAGE ID CREATED SIZE | ||
| nginx | ||
| REPOSITORY TAG IMAGE ID CREATED SIZE | ||
|
|
||
| nginx 1.22 0ccb2559380c 9 days ago 142MB | ||
|
|
||
| nginx 1.22.1 0ccb2559380c 9 days ago 142MB | ||
|
|
||
| nginx stable 0ccb2559380c 9 days ago 142MB | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,4 @@ | ||
| docker pull | ||
| docker image pull nginx:1.22.1 | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Baixaches a mesma imaxe 3 veces. Fíxate na IMAGE ID En cada liña viñan varios tags para a mesma imaxe, pero cada liña é diferent |
||
| docker image pull nginx:stable | ||
| docker image pull nginx:1.22 | ||
| docker image ls nginx | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recoméndoche nomear os containers