-
Notifications
You must be signed in to change notification settings - Fork 12
lesson 3 exercises #4
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
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,10 @@ | ||
|
|
||
| - 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: postgres | ||
| - Container ID: 651d95b481aa | ||
| - Exposed port: 5432 | ||
| - Postgres version: 15.0-1.pgdg110+1 | ||
| - Data Volume (aka PGDATA): /var/lib/postgresql/data | ||
| - default entrypoint: docker-entrypoint.sh | ||
| - default command: postgres | ||
| - baseline consumption : CPU 0% MEM 31.44MB | ||
| - OS: Debian GNU/Linux 11 (bullseye) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| docker pull | ||
| docker pull postgres:latest | ||
| docker image ls | ||
| docker inspect postgres:latest | ||
| docker run -d -e POSTGRES_PASSWORD='password' postgres:latest | ||
|
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. sempre recomendo usar nomes para os nosos contedores. |
||
| docker exec -it 651d95b481aa bash | ||
| cat /etc/os-release | ||
|
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 comando perfector para a release é |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,5 @@ | ||
| REPOSITORY TAG IMAGE ID CREATED SIZE | ||
| nginx | ||
| REPOSITORY TAG IMAGE ID CREATED SIZE | ||
| nginx stable-perl df1998569adb 9 days ago 188MB | ||
| nginx stable 0ccb2559380c 9 days ago 142MB | ||
| nginx stable-alpine-perl 98f7c1f8a3fa 2 weeks ago 58.6MB | ||
| nginx stable-alpine ec84f916d1ec 2 weeks ago 23.6MB |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| docker pull | ||
| docker pull nginx:stable | ||
| docker pull nginx:stable-perl | ||
| docker pull nginx:stable-alpine | ||
| docker pull nginx:stable-alpine-perl | ||
| docker image ls |
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.
Ollo con nomear o contedor igual que unha imaxe.
postgrespode ser interpretado como a imaxe "postgres:latest"