Conversation
| - 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\"]"] |
There was a problem hiding this comment.
ok, é suficient con postgres, o resto é cacharrería interna de docker (agás o CMD)
hectorcanto
left a comment
There was a problem hiding this comment.
1 par de detalles, pero en xeral ben. revisa o das imaxes de NGINX
| - baseline consumption : CPU ___% MEM ___MB | ||
| - OS: Distro Version Codename (Ubuntu 22.04 jammy) | ||
| - Image Size: 377Mb | ||
| - Container Name: festive_heisenberg |
There was a problem hiding this comment.
recoméndoche nomear os containers
| - default entrypoint: docker-entrypoint.sh | ||
| - default command: ["/bin/sh","-c","#(nop) ", "CMD [\"postgres\"]"] | ||
| - baseline consumption : CPU 0.00% MEM 940KiB | ||
| - OS: Debian 15.0-1.pgdg110+1 |
There was a problem hiding this comment.
o sistema operativo é Debian 11, pódese mirar dentro do container con more /etc/issue/
| docker ps | ||
| docker image inspect postgres:latest | ||
|
|
||
| #Dentro del contenedor: |
There was a problem hiding this comment.
gracias polas aclaracións, queda máis lexible
| docker pull | ||
| docker pull postgres:latest | ||
| docker image ls postgres | ||
| docker run -it -e POSTGRES_HOST_AUTH_METHOD=trust --entrypoint /bin/bash postgres |
There was a problem hiding this comment.
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
| @@ -1 +1,4 @@ | |||
| docker pull No newline at end of file | |||
| docker image pull nginx:1.22.1 | |||
There was a problem hiding this comment.
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
Terías que ter collido 1 por cada liña para obter a normal, perl, alpine e alpine perl
Proba outra vez se queres.
No description provided.