ubuntu@ip-172-31-22-77:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; preset: enabled)
Active: active (running) since Tue 2025-03-11 17:20:39 UTC; 3min 19s ago
TriggeredBy: ● docker.socket
Docs: https://docs.docker.com
Main PID: 2293 (dockerd)
Tasks: 9
Memory: 35.3M (peak: 37.5M)
CPU: 237ms
CGroup: /system.slice/docker.service
└─2293 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Mar 11 17:20:38 ip-172-31-22-77 systemd[1]: Starting docker.service - Docker Application Container Engine...
Mar 11 17:20:38 ip-172-31-22-77 dockerd[2293]: time="2025-03-11T17:20:38.804108157Z" level=info msg="Starting up"
Mar 11 17:20:38 ip-172-31-22-77 dockerd[2293]: time="2025-03-11T17:20:38.806210565Z" level=info msg="detected 127.0.0.53 nameserver, assuming systemd-resolved, so usin>Mar 11 17:20:38 ip-172-31-22-77 dockerd[2293]: time="2025-03-11T17:20:38.956843216Z" level=info msg="Loading containers: start."
Mar 11 17:20:39 ip-172-31-22-77 dockerd[2293]: time="2025-03-11T17:20:39.186702639Z" level=info msg="Loading containers: done."
Mar 11 17:20:39 ip-172-31-22-77 dockerd[2293]: time="2025-03-11T17:20:39.208106161Z" level=info msg="Docker daemon" commit="26.1.3-0ubuntu1~24.04.1" containerd-snapsho>Mar 11 17:20:39 ip-172-31-22-77 dockerd[2293]: time="2025-03-11T17:20:39.208186826Z" level=info msg="Daemon has completed initialization"
Mar 11 17:20:39 ip-172-31-22-77 dockerd[2293]: time="2025-03-11T17:20:39.254179859Z" level=info msg="API listen on /run/docker.sock"
Mar 11 17:20:39 ip-172-31-22-77 systemd[1]: Started docker.service - Docker Application Container Engine.
ubuntu@ip-172-31-22-77:~$ docker ps
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json": dial unix /var/run/docker.sock: connect: permission denied
ubuntu@ip-172-31-22-77:~$ whoami
ubuntu
ubuntu@ip-172-31-22-77:~$ sudo usermod -aG docker $USER
ubuntu@ip-172-31-22-77:~$ docker ps
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/json": dial unix /var/run/docker.sock: connect: permission denied
ubuntu@ip-172-31-22-77:~$ newgrp docker
ubuntu@ip-172-31-22-77:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ip-172-31-22-77:~$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
Username: vimleshverma16
Password:
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
ubuntu@ip-172-31-22-77:~$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
Username: vimleshverma16
Password:
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
ubuntu@ip-172-31-22-77:~$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
Username: vimleshverma16
Password:
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
ubuntu@ip-172-31-22-77:~$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
Username: vimleshverma16
Password:
Error: Password Required
ubuntu@ip-172-31-22-77:~$
ubuntu@ip-172-31-22-77:~$
ubuntu@ip-172-31-22-77:~$
ubuntu@ip-172-31-22-77:~$ docker login
Log in with your Docker ID or email address to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com/ to create one.
You can log in with your password or a Personal Access Token (PAT). Using a limited-scope PAT grants better security and is required for organizations using SSO. Learn more at https://docs.docker.com/go/access-tokens/
Username: vimleshverma16
Password:
WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
ubuntu@ip-172-31-22-77:~$ docker pull hello-world
Using default tag: latest
latest: Pulling from library/hello-world
e6590344b1a5: Pull complete
Digest: sha256:bfbb0cc14f13f9ed1ae86abc2b9f11181dc50d779807ed3a3c5e55a6936dbdd5
Status: Downloaded newer image for hello-world:latest
docker.io/library/hello-world:latest
ubuntu@ip-172-31-22-77:~$ docker image
Usage: docker image COMMAND
Manage images
Commands:
build Build an image from a Dockerfile
history Show the history of an image
import Import the contents from a tarball to create a filesystem image
inspect Display detailed information on one or more images
load Load an image from a tar archive or STDIN
ls List images
prune Remove unused images
pull Download an image from a registry
push Upload an image to a registry
rm Remove one or more images
save Save one or more images to a tar archive (streamed to STDOUT by default)
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Run 'docker image COMMAND --help' for more information on a command.
ubuntu@ip-172-31-22-77:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest 74cc54e27dc4 6 weeks ago 10.1kB
ubuntu@ip-172-31-22-77:~$ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
ubuntu@ip-172-31-22-77:~$ docker pull mysql
Using default tag: latest
latest: Pulling from library/mysql
43759093d4f6: Pull complete
d255dceb9ed5: Pull complete
23d22e42ea50: Pull complete
431b106548a3: Pull complete
2be0d473cadf: Pull complete
f56a22f949f9: Pull complete
277ab5f6ddde: Pull complete
df1ba1ac457a: Pull complete
cc9646b08259: Pull complete
893b018337e2: Pull complete
Digest: sha256:146682692a3aa409eae7b7dc6a30f637c6cb49b6ca901c2cd160becc81127d3b
Status: Downloaded newer image for mysql:latest
docker.io/library/mysql:latest
ubuntu@ip-172-31-22-77:~$ client_loop: send disconnect: Connection reset
B:\Lecture's\AWS\pems> ssh -i C:\Users\Vimlesh\.ssh\Docker_practice.pem [email protected]
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-1021-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Tue Mar 11 18:23:51 UTC 2025
System load: 0.0 Processes: 111
Usage of /: 45.6% of 6.71GB Users logged in: 1
Memory usage: 32% IPv4 address for enX0: 172.31.22.77
Swap usage: 0%
* Ubuntu Pro delivers the most comprehensive open source security and
compliance features.
https://ubuntu.com/aws/pro
Expanded Security Maintenance for Applications is not enabled.
140 updates can be applied immediately.
47 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
1 additional security update can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm
Last login: Tue Mar 11 17:16:29 2025 from 101.0.62.207
ubuntu@ip-172-31-22-77:~$ ls
ubuntu@ip-172-31-22-77:~$ mkdir projects
ubuntu@ip-172-31-22-77:~$ cd projects/
ubuntu@ip-172-31-22-77:~/projects$ git clone https://github.com/LondheShubham153/simple-java-docker.git
Cloning into 'simple-java-docker'...
remote: Enumerating objects: 13, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 9 (from 1)
Receiving objects: 100% (13/13), done.
ubuntu@ip-172-31-22-77:~/projects$ cd simple-java-docker/
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ ls
Dockerfile README.md src
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ rm -v Dockerfile
removed 'Dockerfile'
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ vim Dockerfile
[1]+ Stopped vim Dockerfile
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ vim Dockerfile
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ nana Dockerfile
Command 'nana' not found, did you mean:
command 'nano' from deb nano (7.2-2ubuntu0.1)
command 'nala' from deb nala (0.14.0)
command 'nona' from deb hugin-tools (2023.0.0+dfsg-1)
command 'nama' from deb nama (1.216-2)
Try: sudo apt install <deb name>
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ nano Dockerfile
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ vim Dockerfile
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ ls
Dockerfile README.md src
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ docker build -t java-app .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 80.9kB
Step 1/5 : FROM openjdk:17-jdk-alpine
17-jdk-alpine: Pulling from library/openjdk
5843afab3874: Pull complete
53c9466125e4: Pull complete
d8d715783b80: Pull complete
Digest: sha256:4b6abae565492dbe9e7a894137c966a7485154238902f2f25e9dbd9784383d81
Status: Downloaded newer image for openjdk:17-jdk-alpine
---> 264c9bdce361
Step 2/5 : WORKDIR /app
---> Running in 5ed95d213979
---> Removed intermediate container 5ed95d213979
---> 6f40d7919dc6
Step 3/5 : COPY src/Main.java /app/Main.java
---> 982ed9d0be20
Step 4/5 : RUN javac Main.java
---> Running in 1f077b53f58f
---> Removed intermediate container 1f077b53f58f
---> 7402d6be664b
Step 5/5 : CMD ["java", "Main"]
---> Running in 1bf28b005e6c
---> Removed intermediate container 1bf28b005e6c
---> 3315249a58c0
Successfully built 3315249a58c0
Successfully tagged java-app:latest
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
java-app latest 3315249a58c0 3 minutes ago 326MB
mysql latest 5568fddd4f66 6 weeks ago 797MB
hello-world latest 74cc54e27dc4 6 weeks ago 10.1kB
openjdk 17-jdk-alpine 264c9bdce361 3 years ago 326MB
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ docker run java-app
Hello, Docker! Current date: Tue Mar 11 19:01:30 GMT 2025
ubuntu@ip-172-31-22-77:~/projects/simple-java-docker$ cd ..
ubuntu@ip-172-31-22-77:~/projects$ ls
simple-java-docker
ubuntu@ip-172-31-22-77:~/projects$ git clone https://github.com/LondheShubham153/flask-app-ecs.git
Cloning into 'flask-app-ecs'...
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 18 (delta 1), reused 1 (delta 1), pack-reused 14 (from 2)
Receiving objects: 100% (18/18), done.
Resolving deltas: 100% (2/2), done.
ubuntu@ip-172-31-22-77:~/projects$ cd flask-app-ecs/
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ ls
Dockerfile Dockerfile-multi README.md app.py requirements.txt run.py
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ rm -v Dockerfile
removed 'Dockerfile'
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ cat requirements.txt
flask==2.2.2
Werkzeug==2.2.2
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ vim Dockerfile
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ Docker build -t flask-app .
Command 'Docker' not found, did you mean:
command 'docker' from deb docker.io (24.0.7-0ubuntu4.1)
command 'docker' from deb podman-docker (4.9.3+ds1-1ubuntu0.2)
Try: sudo apt install <deb name>
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker build -t flask-app .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 72.19kB
Step 1/5 : FROM Python:3.7
invalid reference format: repository name (library/Python) must be lowercase
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ vim Dockerfile
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker build -t flask-app .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 72.19kB
Step 1/5 : FROM python:3.7
3.7: Pulling from library/python
167b8a53ca45: Pull complete
b47a222d28fa: Pull complete
debce5f9f3a9: Pull complete
1d7ca7cd2e06: Pull complete
ff3119008f58: Pull complete
c2423a76a32b: Pull complete
e1c98ca4926a: Pull complete
3b62c8e1d79b: Pull complete
Digest: sha256:eedf63967cdb57d8214db38ce21f105003ed4e4d0358f02bedc057341bcf92a0
Status: Downloaded newer image for python:3.7
---> 16d93ae3411b
Step 2/5 : WORKDIR /app
---> Running in 11e205bf50ca
---> Removed intermediate container 11e205bf50ca
---> 13b05565215f
Step 3/5 : COPY . .
---> 97a96eaf55bf
Step 4/5 : RUN pip install -r requirements.txt
---> Running in 5a4e0805dc45
Collecting flask==2.2.2
Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.5/101.5 kB 5.5 MB/s eta 0:00:00
Collecting Werkzeug==2.2.2
Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.7/232.7 kB 24.0 MB/s eta 0:00:00
Collecting click>=8.0
Downloading click-8.1.8-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.2/98.2 kB 18.3 MB/s eta 0:00:00
Collecting itsdangerous>=2.0
Downloading itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting Jinja2>=3.0
Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.9/134.9 kB 29.9 MB/s eta 0:00:00
Collecting importlib-metadata>=3.6.0
Downloading importlib_metadata-6.7.0-py3-none-any.whl (22 kB)
Collecting MarkupSafe>=2.1.1
Downloading MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting typing-extensions>=3.6.4
Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Collecting zipp>=0.5
Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
Installing collected packages: zipp, typing-extensions, MarkupSafe, itsdangerous, Werkzeug, Jinja2, importlib-metadata, click, flask
Successfully installed Jinja2-3.1.6 MarkupSafe-2.1.5 Werkzeug-2.2.2 click-8.1.8 flask-2.2.2 importlib-metadata-6.7.0 itsdangerous-2.1.2 typing-extensions-4.7.1 zipp-3.15.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: pip install --upgrade pip
---> Removed intermediate container 5a4e0805dc45
---> 658803d48c4d
Step 5/5 : ENTRYPOINT ["python","run.py"]
---> Running in 3e721412dae6
---> Removed intermediate container 3e721412dae6
---> 9292f720fa42
Successfully built 9292f720fa42
Successfully tagged flask-app:latest
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker run -p 80:80 flask-app
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:80
* Running on http://172.17.0.2:80
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 841-337-435
^C^Cubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker run -d -p 80:80 flask-app
f37607d23986a9347821a1c19c2f9dd0988563f96cd4f1d8a201363699ef85c7
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f37607d23986 flask-app "python run.py" About a minute ago Up About a minute 0.0.0.0:80->80/tcp, :::80->80/tcp loving_yonath
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker logs f37607d23986
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:80
* Running on http://172.17.0.2:80
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 841-337-435
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker stop f37607d23986
f37607d23986
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker start f37607d23986
f37607d23986
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f37607d23986 flask-app "python run.py" 12 minutes ago Up 3 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp loving_yonath
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ docker stop f37607d23986
f37607d23986
ubuntu@ip-172-31-22-77:~/projects/flask-app-ecs$ client_loop: send disconnect: Connection reset
B:\Lecture's\AWS\pems>
Docker Network Logs
ubuntu@ip-172-31-22-77:~$ cd projects/
ubuntu@ip-172-31-22-77:~/projects$ cd two-tier-flask-app/
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ ls
Dockerfile Jenkinsfile README.md docker-compose.yml eks-manifests message.sql templates
Dockerfile-multistage Makefile app.py dummy.txt k8s requirements.txt
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker build -t two-tier-backend
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
"docker build" requires exactly 1 argument.
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker build -t two-tier-backend .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 239.6kB
Step 1/8 : FROM python:3.9-slim
3.9-slim: Pulling from library/python
7cf63256a31a: Pull complete
82a59f028fa3: Pull complete
09f8c21e9f8e: Pull complete
fb0009da06dd: Pull complete
Digest: sha256:d1fd807555208707ec95b284afd10048d0737e84b5f2d6fdcbed2922b9284b56
Status: Downloaded newer image for python:3.9-slim
---> 1a47c1aaa88f
Step 2/8 : WORKDIR /app
---> Running in a29075712294
---> Removed intermediate container a29075712294
---> 66ae3293a875
Step 3/8 : RUN apt-get update && apt-get upgrade -y && apt-get install -y gcc default-libmysqlclient-dev pkg-config && rm -rf /var/lib/apt/lists/*
---> Running in d3159f6e3e09
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8792 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.5 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [246 kB]
Fetched 9306 kB in 3s (3401 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-12
fontconfig-config fonts-dejavu-core gcc-12 libabsl20220623 libaom3 libasan8
libatomic1 libavif15 libbinutils libbrotli1 libbsd0 libc-dev-bin
libc-devtools libc6-dev libcc1-0 libcrypt-dev libctf-nobfd0 libctf0
libdav1d6 libde265-0 libdeflate0 libexpat1 libfontconfig1 libfreetype6
libgav1-1 libgcc-12-dev libgd3 libgomp1 libgprofng0 libheif1 libisl23
libitm1 libjansson4 libjbig0 libjpeg62-turbo liblerc4 liblsan0
libmariadb-dev libmariadb-dev-compat libmariadb3 libmpc3 libmpfr6 libnsl-dev
libnuma1 libpkgconf3 libpng16-16 libquadmath0 librav1e0 libssl-dev
libsvtav1enc1 libtiff6 libtirpc-dev libtsan2 libubsan1 libwebp7 libx11-6
libx11-data libx265-199 libxau6 libxcb1 libxdmcp6 libxpm4 libyuv0
linux-libc-dev manpages manpages-dev mariadb-common mysql-common pkgconf
pkgconf-bin rpcsvc-proto zlib1g-dev
Suggested packages:
binutils-doc cpp-doc gcc-12-locales cpp-12-doc gcc-multilib make autoconf
automake libtool flex bison gdb gcc-doc gcc-12-multilib gcc-12-doc glibc-doc
libgd-tools libssl-doc man-browser
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-12
default-libmysqlclient-dev fontconfig-config fonts-dejavu-core gcc gcc-12
libabsl20220623 libaom3 libasan8 libatomic1 libavif15 libbinutils libbrotli1
libbsd0 libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev
libctf-nobfd0 libctf0 libdav1d6 libde265-0 libdeflate0 libexpat1
libfontconfig1 libfreetype6 libgav1-1 libgcc-12-dev libgd3 libgomp1
libgprofng0 libheif1 libisl23 libitm1 libjansson4 libjbig0 libjpeg62-turbo
liblerc4 liblsan0 libmariadb-dev libmariadb-dev-compat libmariadb3 libmpc3
libmpfr6 libnsl-dev libnuma1 libpkgconf3 libpng16-16 libquadmath0 librav1e0
libssl-dev libsvtav1enc1 libtiff6 libtirpc-dev libtsan2 libubsan1 libwebp7
libx11-6 libx11-data libx265-199 libxau6 libxcb1 libxdmcp6 libxpm4 libyuv0
linux-libc-dev manpages manpages-dev mariadb-common mysql-common pkg-config
pkgconf pkgconf-bin rpcsvc-proto zlib1g-dev
0 upgraded, 80 newly installed, 0 to remove and 0 not upgraded.
Need to get 71.0 MB of archives.
After this operation, 275 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 manpages all 6.03-2 [1332 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 binutils-common amd64 2.40-2 [2487 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 libbinutils amd64 2.40-2 [572 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 libctf-nobfd0 amd64 2.40-2 [153 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 libctf0 amd64 2.40-2 [89.8 kB]
Get:6 http://deb.debian.org/debian bookworm/main amd64 libgprofng0 amd64 2.40-2 [812 kB]
Get:7 http://deb.debian.org/debian bookworm/main amd64 libjansson4 amd64 2.14-2 [40.8 kB]
Get:8 http://deb.debian.org/debian bookworm/main amd64 binutils-x86-64-linux-gnu amd64 2.40-2 [2246 kB]
Get:9 http://deb.debian.org/debian bookworm/main amd64 binutils amd64 2.40-2 [65.0 kB]
Get:10 http://deb.debian.org/debian bookworm/main amd64 libisl23 amd64 0.25-1.1 [683 kB]
Get:11 http://deb.debian.org/debian bookworm/main amd64 libmpfr6 amd64 4.2.0-1 [701 kB]
Get:12 http://deb.debian.org/debian bookworm/main amd64 libmpc3 amd64 1.3.1-1 [51.5 kB]
Get:13 http://deb.debian.org/debian bookworm/main amd64 cpp-12 amd64 12.2.0-14 [9764 kB]
Get:14 http://deb.debian.org/debian bookworm/main amd64 cpp amd64 4:12.2.0-3 [6836 B]
Get:15 http://deb.debian.org/debian bookworm/main amd64 mysql-common all 5.8+1.1.0 [6636 B]
Get:16 http://deb.debian.org/debian bookworm/main amd64 mariadb-common all 1:10.11.6-0+deb12u1 [24.4 kB]
Get:17 http://deb.debian.org/debian bookworm/main amd64 libmariadb3 amd64 1:10.11.6-0+deb12u1 [174 kB]
Get:18 http://deb.debian.org/debian bookworm/main amd64 libssl-dev amd64 3.0.15-1~deb12u1 [2439 kB]
Get:19 http://deb.debian.org/debian bookworm/main amd64 libc-dev-bin amd64 2.36-9+deb12u9 [46.7 kB]
Get:20 http://deb.debian.org/debian-security bookworm-security/main amd64 linux-libc-dev amd64 6.1.128-1 [2103 kB]
Get:21 http://deb.debian.org/debian bookworm/main amd64 libcrypt-dev amd64 1:4.4.33-2 [118 kB]
Get:22 http://deb.debian.org/debian bookworm/main amd64 libtirpc-dev amd64 1.3.3+ds-1 [191 kB]
Get:23 http://deb.debian.org/debian bookworm/main amd64 libnsl-dev amd64 1.3.0-2 [66.4 kB]
Get:24 http://deb.debian.org/debian bookworm/main amd64 rpcsvc-proto amd64 1.4.3-1 [63.3 kB]
Get:25 http://deb.debian.org/debian bookworm/main amd64 libc6-dev amd64 2.36-9+deb12u9 [1904 kB]
Get:26 http://deb.debian.org/debian bookworm/main amd64 zlib1g-dev amd64 1:1.2.13.dfsg-1 [916 kB]
Get:27 http://deb.debian.org/debian bookworm/main amd64 libmariadb-dev amd64 1:10.11.6-0+deb12u1 [265 kB]
Get:28 http://deb.debian.org/debian bookworm/main amd64 libmariadb-dev-compat amd64 1:10.11.6-0+deb12u1 [23.2 kB]
Get:29 http://deb.debian.org/debian bookworm/main amd64 default-libmysqlclient-dev amd64 1.1.0 [3092 B]
Get:30 http://deb.debian.org/debian bookworm/main amd64 fonts-dejavu-core all 2.37-6 [1068 kB]
Get:31 http://deb.debian.org/debian bookworm/main amd64 fontconfig-config amd64 2.14.1-4 [315 kB]
Get:32 http://deb.debian.org/debian bookworm/main amd64 libcc1-0 amd64 12.2.0-14 [41.7 kB]
Get:33 http://deb.debian.org/debian bookworm/main amd64 libgomp1 amd64 12.2.0-14 [116 kB]
Get:34 http://deb.debian.org/debian bookworm/main amd64 libitm1 amd64 12.2.0-14 [26.1 kB]
Get:35 http://deb.debian.org/debian bookworm/main amd64 libatomic1 amd64 12.2.0-14 [9328 B]
Get:36 http://deb.debian.org/debian bookworm/main amd64 libasan8 amd64 12.2.0-14 [2195 kB]
Get:37 http://deb.debian.org/debian bookworm/main amd64 liblsan0 amd64 12.2.0-14 [969 kB]
Get:38 http://deb.debian.org/debian bookworm/main amd64 libtsan2 amd64 12.2.0-14 [2196 kB]
Get:39 http://deb.debian.org/debian bookworm/main amd64 libubsan1 amd64 12.2.0-14 [883 kB]
Get:40 http://deb.debian.org/debian bookworm/main amd64 libquadmath0 amd64 12.2.0-14 [144 kB]
Get:41 http://deb.debian.org/debian bookworm/main amd64 libgcc-12-dev amd64 12.2.0-14 [2437 kB]
Get:42 http://deb.debian.org/debian bookworm/main amd64 gcc-12 amd64 12.2.0-14 [19.3 MB]
Get:43 http://deb.debian.org/debian bookworm/main amd64 gcc amd64 4:12.2.0-3 [5216 B]
Get:44 http://deb.debian.org/debian bookworm/main amd64 libabsl20220623 amd64 20220623.1-1 [391 kB]
Get:45 http://deb.debian.org/debian bookworm/main amd64 libaom3 amd64 3.6.0-1+deb12u1 [1851 kB]
Get:46 http://deb.debian.org/debian bookworm/main amd64 libdav1d6 amd64 1.0.0-2+deb12u1 [513 kB]
Get:47 http://deb.debian.org/debian bookworm/main amd64 libgav1-1 amd64 0.18.0-1+b1 [332 kB]
Get:48 http://deb.debian.org/debian bookworm/main amd64 librav1e0 amd64 0.5.1-6 [763 kB]
Get:49 http://deb.debian.org/debian bookworm/main amd64 libsvtav1enc1 amd64 1.4.1+dfsg-1 [2121 kB]
Get:50 http://deb.debian.org/debian bookworm/main amd64 libjpeg62-turbo amd64 1:2.1.5-2 [166 kB]
Get:51 http://deb.debian.org/debian bookworm/main amd64 libyuv0 amd64 0.0~git20230123.b2528b0-1 [168 kB]
Get:52 http://deb.debian.org/debian bookworm/main amd64 libavif15 amd64 0.11.1-1 [93.8 kB]
Get:53 http://deb.debian.org/debian bookworm/main amd64 libbrotli1 amd64 1.0.9-2+b6 [275 kB]
Get:54 http://deb.debian.org/debian bookworm/main amd64 libbsd0 amd64 0.11.7-2 [117 kB]
Get:55 http://deb.debian.org/debian bookworm/main amd64 libexpat1 amd64 2.5.0-1+deb12u1 [98.9 kB]
Get:56 http://deb.debian.org/debian bookworm/main amd64 libpng16-16 amd64 1.6.39-2 [276 kB]
Get:57 http://deb.debian.org/debian bookworm/main amd64 libfreetype6 amd64 2.12.1+dfsg-5+deb12u3 [398 kB]
Get:58 http://deb.debian.org/debian bookworm/main amd64 libfontconfig1 amd64 2.14.1-4 [386 kB]
Get:59 http://deb.debian.org/debian bookworm/main amd64 libde265-0 amd64 1.0.11-1+deb12u2 [185 kB]
Get:60 http://deb.debian.org/debian bookworm/main amd64 libnuma1 amd64 2.0.16-1 [21.0 kB]
Get:61 http://deb.debian.org/debian bookworm/main amd64 libx265-199 amd64 3.5-2+b1 [1150 kB]
Get:62 http://deb.debian.org/debian bookworm/main amd64 libheif1 amd64 1.15.1-1+deb12u1 [215 kB]
Get:63 http://deb.debian.org/debian bookworm/main amd64 libdeflate0 amd64 1.14-1 [61.4 kB]
Get:64 http://deb.debian.org/debian bookworm/main amd64 libjbig0 amd64 2.1-6.1 [31.7 kB]
Get:65 http://deb.debian.org/debian bookworm/main amd64 liblerc4 amd64 4.0.0+ds-2 [170 kB]
Get:66 http://deb.debian.org/debian bookworm/main amd64 libwebp7 amd64 1.2.4-0.2+deb12u1 [286 kB]
Get:67 http://deb.debian.org/debian bookworm/main amd64 libtiff6 amd64 4.5.0-6+deb12u2 [316 kB]
Get:68 http://deb.debian.org/debian bookworm/main amd64 libxau6 amd64 1:1.0.9-1 [19.7 kB]
Get:69 http://deb.debian.org/debian bookworm/main amd64 libxdmcp6 amd64 1:1.1.2-3 [26.3 kB]
Get:70 http://deb.debian.org/debian bookworm/main amd64 libxcb1 amd64 1.15-1 [144 kB]
Get:71 http://deb.debian.org/debian bookworm/main amd64 libx11-data all 2:1.8.4-2+deb12u2 [292 kB]
Get:72 http://deb.debian.org/debian bookworm/main amd64 libx11-6 amd64 2:1.8.4-2+deb12u2 [760 kB]
Get:73 http://deb.debian.org/debian bookworm/main amd64 libxpm4 amd64 1:3.5.12-1.1+deb12u1 [48.6 kB]
Get:74 http://deb.debian.org/debian bookworm/main amd64 libgd3 amd64 2.3.3-9 [124 kB]
Get:75 http://deb.debian.org/debian bookworm/main amd64 libc-devtools amd64 2.36-9+deb12u9 [54.4 kB]
Get:76 http://deb.debian.org/debian bookworm/main amd64 libpkgconf3 amd64 1.8.1-1 [36.1 kB]
Get:77 http://deb.debian.org/debian bookworm/main amd64 manpages-dev all 6.03-2 [2030 kB]
Get:78 http://deb.debian.org/debian bookworm/main amd64 pkgconf-bin amd64 1.8.1-1 [29.5 kB]
Get:79 http://deb.debian.org/debian bookworm/main amd64 pkgconf amd64 1.8.1-1 [25.9 kB]
Get:80 http://deb.debian.org/debian bookworm/main amd64 pkg-config amd64 1.8.1-1 [13.7 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 71.0 MB in 1s (70.1 MB/s)
Selecting previously unselected package manpages.
(Reading database ... 6686 files and directories currently installed.)
Preparing to unpack .../00-manpages_6.03-2_all.deb ...
Unpacking manpages (6.03-2) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../01-binutils-common_2.40-2_amd64.deb ...
Unpacking binutils-common:amd64 (2.40-2) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../02-libbinutils_2.40-2_amd64.deb ...
Unpacking libbinutils:amd64 (2.40-2) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../03-libctf-nobfd0_2.40-2_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.40-2) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../04-libctf0_2.40-2_amd64.deb ...
Unpacking libctf0:amd64 (2.40-2) ...
Selecting previously unselected package libgprofng0:amd64.
Preparing to unpack .../05-libgprofng0_2.40-2_amd64.deb ...
Unpacking libgprofng0:amd64 (2.40-2) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../06-libjansson4_2.14-2_amd64.deb ...
Unpacking libjansson4:amd64 (2.14-2) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../07-binutils-x86-64-linux-gnu_2.40-2_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.40-2) ...
Selecting previously unselected package binutils.
Preparing to unpack .../08-binutils_2.40-2_amd64.deb ...
Unpacking binutils (2.40-2) ...
Selecting previously unselected package libisl23:amd64.
Preparing to unpack .../09-libisl23_0.25-1.1_amd64.deb ...
Unpacking libisl23:amd64 (0.25-1.1) ...
Selecting previously unselected package libmpfr6:amd64.
Preparing to unpack .../10-libmpfr6_4.2.0-1_amd64.deb ...
Unpacking libmpfr6:amd64 (4.2.0-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../11-libmpc3_1.3.1-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.3.1-1) ...
Selecting previously unselected package cpp-12.
Preparing to unpack .../12-cpp-12_12.2.0-14_amd64.deb ...
Unpacking cpp-12 (12.2.0-14) ...
Selecting previously unselected package cpp.
Preparing to unpack .../13-cpp_4%3a12.2.0-3_amd64.deb ...
Unpacking cpp (4:12.2.0-3) ...
Selecting previously unselected package mysql-common.
Preparing to unpack .../14-mysql-common_5.8+1.1.0_all.deb ...
Unpacking mysql-common (5.8+1.1.0) ...
Selecting previously unselected package mariadb-common.
Preparing to unpack .../15-mariadb-common_1%3a10.11.6-0+deb12u1_all.deb ...
Unpacking mariadb-common (1:10.11.6-0+deb12u1) ...
Selecting previously unselected package libmariadb3:amd64.
Preparing to unpack .../16-libmariadb3_1%3a10.11.6-0+deb12u1_amd64.deb ...
Unpacking libmariadb3:amd64 (1:10.11.6-0+deb12u1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../17-libssl-dev_3.0.15-1~deb12u1_amd64.deb ...
Unpacking libssl-dev:amd64 (3.0.15-1~deb12u1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../18-libc-dev-bin_2.36-9+deb12u9_amd64.deb ...
Unpacking libc-dev-bin (2.36-9+deb12u9) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../19-linux-libc-dev_6.1.128-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (6.1.128-1) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../20-libcrypt-dev_1%3a4.4.33-2_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.33-2) ...
Selecting previously unselected package libtirpc-dev:amd64.
Preparing to unpack .../21-libtirpc-dev_1.3.3+ds-1_amd64.deb ...
Unpacking libtirpc-dev:amd64 (1.3.3+ds-1) ...
Selecting previously unselected package libnsl-dev:amd64.
Preparing to unpack .../22-libnsl-dev_1.3.0-2_amd64.deb ...
Unpacking libnsl-dev:amd64 (1.3.0-2) ...
Selecting previously unselected package rpcsvc-proto.
Preparing to unpack .../23-rpcsvc-proto_1.4.3-1_amd64.deb ...
Unpacking rpcsvc-proto (1.4.3-1) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../24-libc6-dev_2.36-9+deb12u9_amd64.deb ...
Unpacking libc6-dev:amd64 (2.36-9+deb12u9) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../25-zlib1g-dev_1%3a1.2.13.dfsg-1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
Selecting previously unselected package libmariadb-dev.
Preparing to unpack .../26-libmariadb-dev_1%3a10.11.6-0+deb12u1_amd64.deb ...
Unpacking libmariadb-dev (1:10.11.6-0+deb12u1) ...
Selecting previously unselected package libmariadb-dev-compat.
Preparing to unpack .../27-libmariadb-dev-compat_1%3a10.11.6-0+deb12u1_amd64.deb ...
Unpacking libmariadb-dev-compat (1:10.11.6-0+deb12u1) ...
Selecting previously unselected package default-libmysqlclient-dev:amd64.
Preparing to unpack .../28-default-libmysqlclient-dev_1.1.0_amd64.deb ...
Unpacking default-libmysqlclient-dev:amd64 (1.1.0) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../29-fonts-dejavu-core_2.37-6_all.deb ...
Unpacking fonts-dejavu-core (2.37-6) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../30-fontconfig-config_2.14.1-4_amd64.deb ...
Unpacking fontconfig-config (2.14.1-4) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../31-libcc1-0_12.2.0-14_amd64.deb ...
Unpacking libcc1-0:amd64 (12.2.0-14) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../32-libgomp1_12.2.0-14_amd64.deb ...
Unpacking libgomp1:amd64 (12.2.0-14) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../33-libitm1_12.2.0-14_amd64.deb ...
Unpacking libitm1:amd64 (12.2.0-14) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../34-libatomic1_12.2.0-14_amd64.deb ...
Unpacking libatomic1:amd64 (12.2.0-14) ...
Selecting previously unselected package libasan8:amd64.
Preparing to unpack .../35-libasan8_12.2.0-14_amd64.deb ...
Unpacking libasan8:amd64 (12.2.0-14) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../36-liblsan0_12.2.0-14_amd64.deb ...
Unpacking liblsan0:amd64 (12.2.0-14) ...
Selecting previously unselected package libtsan2:amd64.
Preparing to unpack .../37-libtsan2_12.2.0-14_amd64.deb ...
Unpacking libtsan2:amd64 (12.2.0-14) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../38-libubsan1_12.2.0-14_amd64.deb ...
Unpacking libubsan1:amd64 (12.2.0-14) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../39-libquadmath0_12.2.0-14_amd64.deb ...
Unpacking libquadmath0:amd64 (12.2.0-14) ...
Selecting previously unselected package libgcc-12-dev:amd64.
Preparing to unpack .../40-libgcc-12-dev_12.2.0-14_amd64.deb ...
Unpacking libgcc-12-dev:amd64 (12.2.0-14) ...
Selecting previously unselected package gcc-12.
Preparing to unpack .../41-gcc-12_12.2.0-14_amd64.deb ...
Unpacking gcc-12 (12.2.0-14) ...
Selecting previously unselected package gcc.
Preparing to unpack .../42-gcc_4%3a12.2.0-3_amd64.deb ...
Unpacking gcc (4:12.2.0-3) ...
Selecting previously unselected package libabsl20220623:amd64.
Preparing to unpack .../43-libabsl20220623_20220623.1-1_amd64.deb ...
Unpacking libabsl20220623:amd64 (20220623.1-1) ...
Selecting previously unselected package libaom3:amd64.
Preparing to unpack .../44-libaom3_3.6.0-1+deb12u1_amd64.deb ...
Unpacking libaom3:amd64 (3.6.0-1+deb12u1) ...
Selecting previously unselected package libdav1d6:amd64.
Preparing to unpack .../45-libdav1d6_1.0.0-2+deb12u1_amd64.deb ...
Unpacking libdav1d6:amd64 (1.0.0-2+deb12u1) ...
Selecting previously unselected package libgav1-1:amd64.
Preparing to unpack .../46-libgav1-1_0.18.0-1+b1_amd64.deb ...
Unpacking libgav1-1:amd64 (0.18.0-1+b1) ...
Selecting previously unselected package librav1e0:amd64.
Preparing to unpack .../47-librav1e0_0.5.1-6_amd64.deb ...
Unpacking librav1e0:amd64 (0.5.1-6) ...
Selecting previously unselected package libsvtav1enc1:amd64.
Preparing to unpack .../48-libsvtav1enc1_1.4.1+dfsg-1_amd64.deb ...
Unpacking libsvtav1enc1:amd64 (1.4.1+dfsg-1) ...
Selecting previously unselected package libjpeg62-turbo:amd64.
Preparing to unpack .../49-libjpeg62-turbo_1%3a2.1.5-2_amd64.deb ...
Unpacking libjpeg62-turbo:amd64 (1:2.1.5-2) ...
Selecting previously unselected package libyuv0:amd64.
Preparing to unpack .../50-libyuv0_0.0~git20230123.b2528b0-1_amd64.deb ...
Unpacking libyuv0:amd64 (0.0~git20230123.b2528b0-1) ...
Selecting previously unselected package libavif15:amd64.
Preparing to unpack .../51-libavif15_0.11.1-1_amd64.deb ...
Unpacking libavif15:amd64 (0.11.1-1) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../52-libbrotli1_1.0.9-2+b6_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.9-2+b6) ...
Selecting previously unselected package libbsd0:amd64.
Preparing to unpack .../53-libbsd0_0.11.7-2_amd64.deb ...
Unpacking libbsd0:amd64 (0.11.7-2) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../54-libexpat1_2.5.0-1+deb12u1_amd64.deb ...
Unpacking libexpat1:amd64 (2.5.0-1+deb12u1) ...
Selecting previously unselected package libpng16-16:amd64.
Preparing to unpack .../55-libpng16-16_1.6.39-2_amd64.deb ...
Unpacking libpng16-16:amd64 (1.6.39-2) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../56-libfreetype6_2.12.1+dfsg-5+deb12u3_amd64.deb ...
Unpacking libfreetype6:amd64 (2.12.1+dfsg-5+deb12u3) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../57-libfontconfig1_2.14.1-4_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.14.1-4) ...
Selecting previously unselected package libde265-0:amd64.
Preparing to unpack .../58-libde265-0_1.0.11-1+deb12u2_amd64.deb ...
Unpacking libde265-0:amd64 (1.0.11-1+deb12u2) ...
Selecting previously unselected package libnuma1:amd64.
Preparing to unpack .../59-libnuma1_2.0.16-1_amd64.deb ...
Unpacking libnuma1:amd64 (2.0.16-1) ...
Selecting previously unselected package libx265-199:amd64.
Preparing to unpack .../60-libx265-199_3.5-2+b1_amd64.deb ...
Unpacking libx265-199:amd64 (3.5-2+b1) ...
Selecting previously unselected package libheif1:amd64.
Preparing to unpack .../61-libheif1_1.15.1-1+deb12u1_amd64.deb ...
Unpacking libheif1:amd64 (1.15.1-1+deb12u1) ...
Selecting previously unselected package libdeflate0:amd64.
Preparing to unpack .../62-libdeflate0_1.14-1_amd64.deb ...
Unpacking libdeflate0:amd64 (1.14-1) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../63-libjbig0_2.1-6.1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-6.1) ...
Selecting previously unselected package liblerc4:amd64.
Preparing to unpack .../64-liblerc4_4.0.0+ds-2_amd64.deb ...
Unpacking liblerc4:amd64 (4.0.0+ds-2) ...
Selecting previously unselected package libwebp7:amd64.
Preparing to unpack .../65-libwebp7_1.2.4-0.2+deb12u1_amd64.deb ...
Unpacking libwebp7:amd64 (1.2.4-0.2+deb12u1) ...
Selecting previously unselected package libtiff6:amd64.
Preparing to unpack .../66-libtiff6_4.5.0-6+deb12u2_amd64.deb ...
Unpacking libtiff6:amd64 (4.5.0-6+deb12u2) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../67-libxau6_1%3a1.0.9-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.9-1) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../68-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../69-libxcb1_1.15-1_amd64.deb ...
Unpacking libxcb1:amd64 (1.15-1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../70-libx11-data_2%3a1.8.4-2+deb12u2_all.deb ...
Unpacking libx11-data (2:1.8.4-2+deb12u2) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../71-libx11-6_2%3a1.8.4-2+deb12u2_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.8.4-2+deb12u2) ...
Selecting previously unselected package libxpm4:amd64.
Preparing to unpack .../72-libxpm4_1%3a3.5.12-1.1+deb12u1_amd64.deb ...
Unpacking libxpm4:amd64 (1:3.5.12-1.1+deb12u1) ...
Selecting previously unselected package libgd3:amd64.
Preparing to unpack .../73-libgd3_2.3.3-9_amd64.deb ...
Unpacking libgd3:amd64 (2.3.3-9) ...
Selecting previously unselected package libc-devtools.
Preparing to unpack .../74-libc-devtools_2.36-9+deb12u9_amd64.deb ...
Unpacking libc-devtools (2.36-9+deb12u9) ...
Selecting previously unselected package libpkgconf3:amd64.
Preparing to unpack .../75-libpkgconf3_1.8.1-1_amd64.deb ...
Unpacking libpkgconf3:amd64 (1.8.1-1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../76-manpages-dev_6.03-2_all.deb ...
Unpacking manpages-dev (6.03-2) ...
Selecting previously unselected package pkgconf-bin.
Preparing to unpack .../77-pkgconf-bin_1.8.1-1_amd64.deb ...
Unpacking pkgconf-bin (1.8.1-1) ...
Selecting previously unselected package pkgconf:amd64.
Preparing to unpack .../78-pkgconf_1.8.1-1_amd64.deb ...
Unpacking pkgconf:amd64 (1.8.1-1) ...
Selecting previously unselected package pkg-config:amd64.
Preparing to unpack .../79-pkg-config_1.8.1-1_amd64.deb ...
Unpacking pkg-config:amd64 (1.8.1-1) ...
Setting up libexpat1:amd64 (2.5.0-1+deb12u1) ...
Setting up libaom3:amd64 (3.6.0-1+deb12u1) ...
Setting up mysql-common (5.8+1.1.0) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libabsl20220623:amd64 (20220623.1-1) ...
Setting up libxau6:amd64 (1:1.0.9-1) ...
Setting up liblerc4:amd64 (4.0.0+ds-2) ...
Setting up manpages (6.03-2) ...
Setting up libbrotli1:amd64 (1.0.9-2+b6) ...
Setting up binutils-common:amd64 (2.40-2) ...
Setting up libdeflate0:amd64 (1.14-1) ...
Setting up linux-libc-dev:amd64 (6.1.128-1) ...
Setting up libctf-nobfd0:amd64 (2.40-2) ...
Setting up libsvtav1enc1:amd64 (1.4.1+dfsg-1) ...
Setting up libgomp1:amd64 (12.2.0-14) ...
Setting up libjbig0:amd64 (2.1-6.1) ...
Setting up librav1e0:amd64 (0.5.1-6) ...
Setting up libjansson4:amd64 (2.14-2) ...
Setting up mariadb-common (1:10.11.6-0+deb12u1) ...
update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up libtirpc-dev:amd64 (1.3.3+ds-1) ...
Setting up libpkgconf3:amd64 (1.8.1-1) ...
Setting up rpcsvc-proto (1.4.3-1) ...
Setting up libjpeg62-turbo:amd64 (1:2.1.5-2) ...
Setting up libx11-data (2:1.8.4-2+deb12u2) ...
Setting up libmpfr6:amd64 (4.2.0-1) ...
Setting up libquadmath0:amd64 (12.2.0-14) ...
Setting up libssl-dev:amd64 (3.0.15-1~deb12u1) ...
Setting up libpng16-16:amd64 (1.6.39-2) ...
Setting up libmpc3:amd64 (1.3.1-1) ...
Setting up libatomic1:amd64 (12.2.0-14) ...
Setting up libmariadb3:amd64 (1:10.11.6-0+deb12u1) ...
Setting up fonts-dejavu-core (2.37-6) ...
Setting up libgav1-1:amd64 (0.18.0-1+b1) ...
Setting up pkgconf-bin (1.8.1-1) ...
Setting up libdav1d6:amd64 (1.0.0-2+deb12u1) ...
Setting up libwebp7:amd64 (1.2.4-0.2+deb12u1) ...
Setting up libubsan1:amd64 (12.2.0-14) ...
Setting up libnuma1:amd64 (2.0.16-1) ...
Setting up libnsl-dev:amd64 (1.3.0-2) ...
Setting up libcrypt-dev:amd64 (1:4.4.33-2) ...
Setting up libtiff6:amd64 (4.5.0-6+deb12u2) ...
Setting up libasan8:amd64 (12.2.0-14) ...
Setting up libtsan2:amd64 (12.2.0-14) ...
Setting up libbinutils:amd64 (2.40-2) ...
Setting up libisl23:amd64 (0.25-1.1) ...
Setting up libde265-0:amd64 (1.0.11-1+deb12u2) ...
Setting up libc-dev-bin (2.36-9+deb12u9) ...
Setting up libbsd0:amd64 (0.11.7-2) ...
Setting up libyuv0:amd64 (0.0~git20230123.b2528b0-1) ...
Setting up libcc1-0:amd64 (12.2.0-14) ...
Setting up liblsan0:amd64 (12.2.0-14) ...
Setting up libitm1:amd64 (12.2.0-14) ...
Setting up libctf0:amd64 (2.40-2) ...
Setting up manpages-dev (6.03-2) ...
Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
Setting up cpp-12 (12.2.0-14) ...
Setting up libxcb1:amd64 (1.15-1) ...
Setting up libavif15:amd64 (0.11.1-1) ...
Setting up fontconfig-config (2.14.1-4) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up pkgconf:amd64 (1.8.1-1) ...
Setting up libgprofng0:amd64 (2.40-2) ...
Setting up libfreetype6:amd64 (2.12.1+dfsg-5+deb12u3) ...
Setting up libgcc-12-dev:amd64 (12.2.0-14) ...
Setting up pkg-config:amd64 (1.8.1-1) ...
Setting up libx265-199:amd64 (3.5-2+b1) ...
Setting up cpp (4:12.2.0-3) ...
Setting up libc6-dev:amd64 (2.36-9+deb12u9) ...
Setting up libx11-6:amd64 (2:1.8.4-2+deb12u2) ...
Setting up libfontconfig1:amd64 (2.14.1-4) ...
Setting up binutils-x86-64-linux-gnu (2.40-2) ...
Setting up libxpm4:amd64 (1:3.5.12-1.1+deb12u1) ...
Setting up libheif1:amd64 (1.15.1-1+deb12u1) ...
Setting up binutils (2.40-2) ...
Setting up gcc-12 (12.2.0-14) ...
Setting up libgd3:amd64 (2.3.3-9) ...
Setting up zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
Setting up libc-devtools (2.36-9+deb12u9) ...
Setting up gcc (4:12.2.0-3) ...
Setting up libmariadb-dev (1:10.11.6-0+deb12u1) ...
Setting up libmariadb-dev-compat (1:10.11.6-0+deb12u1) ...
Setting up default-libmysqlclient-dev:amd64 (1.1.0) ...
Processing triggers for libc-bin (2.36-9+deb12u9) ...
---> Removed intermediate container d3159f6e3e09
---> 8acb4b49952e
Step 4/8 : COPY requirements.txt .
---> 4535d55739e0
Step 5/8 : RUN pip install mysqlclient
---> Running in a9296b96b64b
Collecting mysqlclient
Downloading mysqlclient-2.2.7.tar.gz (91 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.4/91.4 kB 2.5 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: mysqlclient
Building wheel for mysqlclient (pyproject.toml): started
Building wheel for mysqlclient (pyproject.toml): finished with status 'done'
Created wheel for mysqlclient: filename=mysqlclient-2.2.7-cp39-cp39-linux_x86_64.whl size=132723 sha256=f1cbd87f809a3b8081fdfb149873f2941d71dfc57f356696ed0a43293a47bfe1
Stored in directory: /root/.cache/pip/wheels/ed/03/da/e61775175405d4b30c644467a6d377a98fd5a5da1bf5364614
Successfully built mysqlclient
Installing collected packages: mysqlclient
Successfully installed mysqlclient-2.2.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.0.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
---> Removed intermediate container a9296b96b64b
---> d15cbc3e831a
Step 6/8 : RUN pip install --no-cache-dir -r requirements.txt
---> Running in cb22a9be57cc
Collecting Flask==2.0.1
Downloading Flask-2.0.1-py3-none-any.whl (94 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.8/94.8 kB 3.2 MB/s eta 0:00:00
Collecting Flask-MySQLdb==0.2.0
Downloading Flask-MySQLdb-0.2.0.tar.gz (2.1 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting requests==2.26.0
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.3/62.3 kB 22.8 MB/s eta 0:00:00
Collecting Werkzeug==2.2.2
Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.7/232.7 kB 41.4 MB/s eta 0:00:00
Collecting itsdangerous>=2.0
Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Collecting click>=7.1.2
Downloading click-8.1.8-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.2/98.2 kB 209.5 MB/s eta 0:00:00
Collecting Jinja2>=3.0
Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.9/134.9 kB 56.7 MB/s eta 0:00:00
Requirement already satisfied: mysqlclient in /usr/local/lib/python3.9/site-packages (from Flask-MySQLdb==0.2.0->-r requirements.txt (line 2)) (2.2.7)
Collecting charset-normalizer~=2.0.0
Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Downloading idna-3.10-py3-none-any.whl (70 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 70.4/70.4 kB 75.9 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.20-py2.py3-none-any.whl (144 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 144.2/144.2 kB 284.4 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.4/166.4 kB 312.8 MB/s eta 0:00:00
Collecting MarkupSafe>=2.1.1
Downloading MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20 kB)
Building wheels for collected packages: Flask-MySQLdb
Building wheel for Flask-MySQLdb (setup.py): started
Building wheel for Flask-MySQLdb (setup.py): finished with status 'done'
Created wheel for Flask-MySQLdb: filename=Flask_MySQLdb-0.2.0-py3-none-any.whl size=2664 sha256=f139f917996a6151ac4d3f658689713ab5db59489b3fef8298aaecde5df18cd7
Stored in directory: /tmp/pip-ephem-wheel-cache-u22al8y0/wheels/41/ab/e5/ac1bfe8e719b0c95880c23643ce001363e8240f615f260755e
Successfully built Flask-MySQLdb
Installing collected packages: urllib3, MarkupSafe, itsdangerous, idna, click, charset-normalizer, certifi, Werkzeug, requests, Jinja2, Flask, Flask-MySQLdb
Successfully installed Flask-2.0.1 Flask-MySQLdb-0.2.0 Jinja2-3.1.6 MarkupSafe-3.0.2 Werkzeug-2.2.2 certifi-2025.1.31 charset-normalizer-2.0.12 click-8.1.8 idna-3.10 itsdangerous-2.2.0 requests-2.26.0 urllib3-1.26.20
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.0.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
---> Removed intermediate container cb22a9be57cc
---> 5c396f68e74a
Step 7/8 : COPY . .
---> 1ac6fc93085e
Step 8/8 : CMD ["python", "app.py"]
---> Running in 8ee0c11fcc74
---> Removed intermediate container 8ee0c11fcc74
---> 482cfa3e3f79
Successfully built 482cfa3e3f79
Successfully tagged two-tier-backend:latest
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
two-tier-backend latest 482cfa3e3f79 40 seconds ago 391MB
flask-app latest 9292f720fa42 23 hours ago 1.01GB
java-app latest 3315249a58c0 24 hours ago 326MB
mysql latest 5568fddd4f66 7 weeks ago 797MB
hello-world latest 74cc54e27dc4 7 weeks ago 10.1kB
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
python 3.7 16d93ae3411b 19 months ago 994MB
openjdk 17-jdk-alpine 264c9bdce361 3 years ago 326MB
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker run -d -p 5000:5000 -e MYSQL_HOST=mysql -e MYSQL_USER=root -e MYSQL_PASSWORD=root -e MYSQL_DB=devops two-ti
er-backend:latest
9249b9f7260acd0d118b9bda4ec7b3eccd3c10962ab59f0eb756ecefe5852afc
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9249b9f7260a two-tier-backend:latest "python app.py" 34 seconds ago Exited (1) 32 seconds ago strange_kapitsa
f37607d23986 flask-app "python run.py" 23 hours ago Exited (0) 23 hours ago loving_yonath
c9281c7c69c7 flask-app "python run.py" 23 hours ago Exited (0) 23 hours ago distracted_pasteur
691eaf50d6eb java-app "java Main" 24 hours ago Exited (0) 24 hours ago beautiful_dhawan
55b3fea71706 hello-world "/hello" 25 hours ago Exited (0) 25 hours ago crazy_kilby
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker logs 9249b9f7260a
Traceback (most recent call last):
File "/app/app.py", line 46, in <module>
init_db()
File "/app/app.py", line 18, in init_db
cur = mysql.connection.cursor()
File "/usr/local/lib/python3.9/site-packages/flask_mysqldb/__init__.py", line 94, in connection
ctx.mysql_db = self.connect
File "/usr/local/lib/python3.9/site-packages/flask_mysqldb/__init__.py", line 81, in connect
return MySQLdb.connect(**kwargs)
File "/usr/local/lib/python3.9/site-packages/MySQLdb/__init__.py", line 121, in Connect
return Connection(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/MySQLdb/connections.py", line 200, in __init__
super().__init__(*args, **kwargs2)
MySQLdb.OperationalError: (2005, "Unknown server host 'mysql' (-2)")
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker create network two-tier
Unable to find image 'network:latest' locally
Error response from daemon: pull access denied for network, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network create -d two-tier
"docker network create" requires exactly 1 argument.
See 'docker network create --help'.
Usage: docker network create [OPTIONS] NETWORK
Create a network
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network create -d two-tier bridge
Error response from daemon: operation is not permitted on predefined bridge network
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker networ
docker: 'networ' is not a docker command.
See 'docker --help'
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network
Usage: docker network COMMAND
Manage networks
Commands:
connect Connect a container to a network
create Create a network
disconnect Disconnect a container from a network
inspect Display detailed information on one or more networks
ls List networks
prune Remove all unused networks
rm Remove one or more networks
Run 'docker network COMMAND --help' for more information on a command.
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network ls
NETWORK ID NAME DRIVER SCOPE
cbd041c62e97 bridge bridge local
4ec915716107 host host local
4c149fbdf07d mynetwork bridge local
9cdbc1cda4d8 none null local
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network create -d bridge two-tier
e6c20e1652c874bf973e12bbdcee623e7a6b33113f66d1a84a1cd27143dcbe69
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network ls
NETWORK ID NAME DRIVER SCOPE
cbd041c62e97 bridge bridge local
4ec915716107 host host local
4c149fbdf07d mynetwork bridge local
9cdbc1cda4d8 none null local
e6c20e1652c8 two-tier bridge local
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker run -d --name mysql --network two-tier -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=devops mysql
c09f425d70008ffd9103cb7e801f4b91f8bbfbd206b549c70d3d227d69eea682
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker run -d -p 5000:5000 --network two-tier -e MYSQL_HOST=mysql -e MYSQL_USER=root -e MYSQL_PASSWORD=root -e MYS
QL_DB=devops two-tier-backend:latest
5ab2f42a2d831caad5a47ea7ea4cc6d1b4d7e8142c2f26758933947d3e2b4c19
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5ab2f42a2d83 two-tier-backend:latest "python app.py" 17 seconds ago Up 15 seconds 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp keen_goldberg
c09f425d7000 mysql "docker-entrypoint.s…" About a minute ago Up About a minute 3306/tcp, 33060/tcp mysql
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network inspect two tier
[]
Error response from daemon: network two not found
Error response from daemon: network tier not found
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker network inspect two-tier
[
{
"Name": "two-tier",
"Id": "e6c20e1652c874bf973e12bbdcee623e7a6b33113f66d1a84a1cd27143dcbe69",
"Created": "2025-03-12T19:00:47.566898475Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "172.19.0.0/16",
"Gateway": "172.19.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"5ab2f42a2d831caad5a47ea7ea4cc6d1b4d7e8142c2f26758933947d3e2b4c19": {
"Name": "keen_goldberg",
"EndpointID": "13cefd5eae9bb32b0866aed3e8466f0d9cde9c3228d56ea2a2c4ff0d53eac2a2",
"MacAddress": "02:42:ac:13:00:03",
"IPv4Address": "172.19.0.3/16",
"IPv6Address": ""
},
"c09f425d70008ffd9103cb7e801f4b91f8bbfbd206b549c70d3d227d69eea682": {
"Name": "mysql",
"EndpointID": "11003c7a145a8a408ae16f4e1db4efab7076d2c7f24ab5c782d1f5d53eb78f43",
"MacAddress": "02:42:ac:13:00:02",
"IPv4Address": "172.19.0.2/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
]
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker exec -it dd bash
Error response from daemon: No such container: dd
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker exec -it <container_id> bash
-bash: container_id: No such file or directory
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5ab2f42a2d83 two-tier-backend:latest "python app.py" 27 minutes ago Up 26 minutes 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp keen_goldberg
c09f425d7000 mysql "docker-entrypoint.s…" 28 minutes ago Up 28 minutes 3306/tcp, 33060/tcp mysql
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker exec -it c09f425d7000 bash
bash-5.use devops
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Your MySQL connection id is 14
Database changed9.2.0 MySQL Community Server - GPL
mysql> use devops;
Database changed00, 2025, Oracle and/or its affiliates.
mysql> select * from messages
-> use devops^C
mysql> select * from messages;
+----+--------------+
| id | message |
+----+--------------+for help. Type '\c' to clear the current input statement.
| 1 | hello |
| 2 | i am vimlesh |
+----+--------------+
2 rows in set (0.00 sec)
mysql> exit
Bye
bash-5.1#
bash-5.1# exit
exit
FIniSHED
Docker Volume and Storage
ubuntu@ip-172-31-22-77:~$ docker volume ls
DRIVER VOLUME NAME
local 1a1f7d666ce637dd938860b958274e6038bba8b8b4022cf0df1e8b57155426c9
ubuntu@ip-172-31-22-77:~$ docker volume create mysql-data
mysql-data
ubuntu@ip-172-31-22-77:~$ docker inspect mysql-data
[
{
"CreatedAt": "2025-03-15T13:11:48Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/mysql-data/_data",
"Name": "mysql-data",
"Options": null,
"Scope": "local"
}
]
ubuntu@ip-172-31-22-77:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ip-172-31-22-77:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
flask-app latest 9292f720fa42 3 days ago 1.01GB
java-app latest 3315249a58c0 3 days ago 326MB
mysql latest 5568fddd4f66 7 weeks ago 797MB
hello-world latest 74cc54e27dc4 7 weeks ago 10.1kB
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
python 3.7 16d93ae3411b 20 months ago 994MB
openjdk 17-jdk-alpine 264c9bdce361 3 years ago 326MB
ubuntu@ip-172-31-22-77:~$ docker restart 5568fddd4f66
Error response from daemon: No such container: 5568fddd4f66
ubuntu@ip-172-31-22-77:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5ab2f42a2d83 two-tier-backend:latest "python app.py" 2 days ago Exited (0) 2 days ago keen_goldberg
c09f425d7000 mysql "docker-entrypoint.s…" 2 days ago Exited (0) 2 days ago mysql
9249b9f7260a two-tier-backend:latest "python app.py" 2 days ago Exited (1) 2 days ago strange_kapitsa
f37607d23986 flask-app "python run.py" 3 days ago Exited (0) 3 days ago loving_yonath
c9281c7c69c7 flask-app "python run.py" 3 days ago Exited (0) 3 days ago distracted_pasteur
691eaf50d6eb java-app "java Main" 3 days ago Exited (0) 3 days ago beautiful_dhawan
55b3fea71706 hello-world "/hello" 3 days ago Exited (0) 3 days ago crazy_kilby
ubuntu@ip-172-31-22-77:~$ docker restart 5ab2f42a2d83
5ab2f42a2d83
ubuntu@ip-172-31-22-77:~$ docker rm c09f425d7000
c09f425d7000
ubuntu@ip-172-31-22-77:~$ docker run -d --name mysql --network two-tier -v mysql-data -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=devops mysql
fd9a669a534a762cb5914aec9512c60b61c588a7bde24d63dbf717209db811f3
ubuntu@ip-172-31-22-77:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fd9a669a534a mysql "docker-entrypoint.s…" 23 seconds ago Up 22 seconds 3306/tcp, 33060/tcp mysql
ubuntu@ip-172-31-22-77:~$ docke rm fd9a669a534a
Command 'docke' not found, did you mean:
command 'docker' from deb docker.io (24.0.7-0ubuntu4.1)
command 'docker' from deb podman-docker (4.9.3+ds1-1ubuntu0.2)
Try: sudo apt install <deb name>
ubuntu@ip-172-31-22-77:~$ docker rm fd9a669a534a
Error response from daemon: cannot remove container "/mysql": container is running: stop the container before removing or force remove
ubuntu@ip-172-31-22-77:~$ docker stop fd9a669a534a and rm fd9a669a534a
fd9a669a534a
fd9a669a534a
Error response from daemon: No such container: and
Error response from daemon: No such container: rm
ubuntu@ip-172-31-22-77:~$ docker stop fd9a669a534a && rm fd9a669a534a
fd9a669a534a
rm: cannot remove 'fd9a669a534a': No such file or directory
ubuntu@ip-172-31-22-77:~$ docker rm fd9a669a534a
fd9a669a534a
ubuntu@ip-172-31-22-77:~$ docker run -d --name mysql --network two-tier -v mysql-data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=devops mysql
5068b42a8b4f650b8ec8350a8ec5ff316f3aa76303f1bee9aecd5d35300d4631
ubuntu@ip-172-31-22-77:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5068b42a8b4f mysql "docker-entrypoint.s…" 23 seconds ago Up 22 seconds 3306/tcp, 33060/tcp mysql
ubuntu@ip-172-31-22-77:~$ docker logs two-tier-backend:latest
Error response from daemon: No such container: two-tier-backend:latest
ubuntu@ip-172-31-22-77:~$ docker stop 5068b42a8b4f and docker rm 5068b42a8b4f
5068b42a8b4f
5068b42a8b4f
Error response from daemon: No such container: and
Error response from daemon: No such container: docker
Error response from daemon: No such container: rm
ubuntu@ip-172-31-22-77:~$ docker stop 5068b42a8b4f && docker rm 5068b42a8b4f
5068b42a8b4f
5068b42a8b4f
ubuntu@ip-172-31-22-77:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5ab2f42a2d83 two-tier-backend:latest "python app.py" 2 days ago Exited (1) 18 minutes ago keen_goldberg
9249b9f7260a two-tier-backend:latest "python app.py" 2 days ago Exited (1) 2 days ago strange_kapitsa
f37607d23986 flask-app "python run.py" 3 days ago Exited (0) 3 days ago loving_yonath
c9281c7c69c7 flask-app "python run.py" 3 days ago Exited (0) 3 days ago distracted_pasteur
691eaf50d6eb java-app "java Main" 3 days ago Exited (0) 3 days ago beautiful_dhawan
55b3fea71706 hello-world "/hello" 3 days ago Exited (0) 3 days ago crazy_kilby
ubuntu@ip-172-31-22-77:~$ docker volume ls
DRIVER VOLUME NAME
local 1a1f7d666ce637dd938860b958274e6038bba8b8b4022cf0df1e8b57155426c9
local 539253988e5525ec7944497b9aeb198247ab33483888e0129efdcfac2e2944c6
local cb17d134c08ecf8b885cf1590d88453a4550632f240fce4384eca4ea0dfc3c23
local mysql-data
ubuntu@ip-172-31-22-77:~$ docker volume mysql-data
Usage: docker volume COMMAND
Manage volumes
Commands:
create Create a volume
inspect Display detailed information on one or more volumes
ls List volumes
prune Remove unused local volumes
rm Remove one or more volumes
update Update a volume (cluster volumes only)
Run 'docker volume COMMAND --help' for more information on a command.
ubuntu@ip-172-31-22-77:~$ docker volume ls mysql-data
"docker volume ls" accepts no arguments.
See 'docker volume ls --help'.
Usage: docker volume ls [OPTIONS]
List volumes
ubuntu@ip-172-31-22-77:~$ docker volume lnspect mysql-data
Usage: docker volume COMMAND
Manage volumes
Commands:
create Create a volume
inspect Display detailed information on one or more volumes
ls List volumes
prune Remove unused local volumes
rm Remove one or more volumes
update Update a volume (cluster volumes only)
Run 'docker volume COMMAND --help' for more information on a command.
ubuntu@ip-172-31-22-77:~$ docker volume inspect mysql-data
[
{
"CreatedAt": "2025-03-15T13:11:48Z",
"Driver": "local",
"Labels": null,
"Mountpoint": "/var/lib/docker/volumes/mysql-data/_data",
"Name": "mysql-data",
"Options": null,
"Scope": "local"
}
]
ubuntu@ip-172-31-22-77:~$ sudo su
root@ip-172-31-22-77:/home/ubuntu# cd /var/lib/docker/volumes/mysql-data/_data
root@ip-172-31-22-77:/var/lib/docker/volumes/mysql-data/_data# ls
'#ib_16384_0.dblwr' '#innodb_temp' binlog.000002 ca.pem devops mysql mysql_upgrade_history public_key.pem sys
'#ib_16384_1.dblwr' auto.cnf binlog.index client-cert.pem ib_buffer_pool mysql.ibd performance_schema server-cert.pem undo_001
'#innodb_redo' binlog.000001 ca-key.pem client-key.pem ibdata1 mysql.sock private_key.pem server-key.pem undo_002
root@ip-172-31-22-77:/var/lib/docker/volumes/mysql-data/_data# exit
exit
ubuntu@ip-172-31-22-77:~$
Docker Compose
buntu@ip-172-31-22-77:~$ cd projects/
ubuntu@ip-172-31-22-77:~/projects$ cd two-tier-flask-app/
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ ls
Dockerfile Jenkinsfile README.md docker-compose.yml eks-manifests message.sql templates
Dockerfile-multistage Makefile app.py dummy.txt k8s requirements.txt
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ sudo apt-get install docker-compose-v2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
docker-compose-v2
0 upgraded, 1 newly installed, 0 to remove and 98 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 55.9 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu noble-updates/universe amd64 docker-compose-v2 amd64 2.27.1+ds1-0ubuntu1~24.04.1 [13.1 MB]
Fetched 13.1 MB in 0s (66.0 MB/s)
Selecting previously unselected package docker-compose-v2.
(Reading database ... 101575 files and directories currently installed.)
Preparing to unpack .../docker-compose-v2_2.27.1+ds1-0ubuntu1~24.04.1_amd64.deb ...
Unpacking docker-compose-v2 (2.27.1+ds1-0ubuntu1~24.04.1) ...
Setting up docker-compose-v2 (2.27.1+ds1-0ubuntu1~24.04.1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker compose up
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
WARN[0000] /home/ubuntu/projects/two-tier-flask-app/docker-compose.yml: `version` is obsolete
[+] Running 19/23
⠹ mysql [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 137.9MB / 137.9MB Pulling 20.2s
✔ 20e4dcae4c69 Pull complete 8.4s
✔ 1c56c3d4ce74 Pull complete 8.5s
✔ e9f03a1c24ce Pull complete 8.6s
✔ 68c3898c2015 Pull complete 9.0s
✔ 6b95a940e7b6 Pull complete 9.1s
✔ 90986bb8de6e Pull complete 9.2s
✔ ae71319cb779 Pull complete 11.3s
✔ ffc89e9dfd88 Pull complete 11.3s
⠴ 43d05e938198 Extracting [==================================================>] 56.29MB/56.29MB 19.6s
✔ 064b2d298fba Download complete 2.8s
✔ df9a4d85569b Download complete 3.0s
⠙ flask-app [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 148.5MB / 148.9MB Pulling 20.2s
✔ c29f5b76f736 Pull complete 5.0s
✔ 9315c4821e72 Pull complete 5.4s
✔ 7e8ac65e25aa Pull complete 7.0s
✔ b26995e9f45f Pull complete 7.1s
✔ f27e9cca196b Pull complete 7.2s
✔ ebd02fc03a99 Pull complete 16.8s
✔ 95127ac76e38 Pull complete 16.9s
✔ cabf59ff0be5 Pull complete 17.8s
✔ 39c09f910276 Pull complete 18.3s
⠇ e6201429738d Extracting [=================> ] 2.556MB/7.332MB 19.6s
failed to register layer: write /usr/libexec/mysqlsh/mysql_config_editor: no space left on device
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ client_loop: send disconnect: Connection reset
C:\Users\Vimlesh\.ssh>ssh -i "Docker_practice.pem" [email protected]
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-1024-aws x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Sat Mar 15 15:52:41 UTC 2025
System load: 0.0 Processes: 113
Usage of /: 85.2% of 6.71GB Users logged in: 1
Memory usage: 29% IPv4 address for enX0: 172.31.22.77
Swap usage: 0%
=> / is using 85.2% of 6.71GB
* Ubuntu Pro delivers the most comprehensive open source security and
compliance features.
https://ubuntu.com/aws/pro
Expanded Security Maintenance for Applications is not enabled.
93 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
1 additional security update can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm
Last login: Sat Mar 15 14:12:09 2025 from 101.0.63.45
ubuntu@ip-172-31-22-77:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
flask-app latest 9292f720fa42 3 days ago 1.01GB
java-app latest 3315249a58c0 3 days ago 326MB
mysql latest 5568fddd4f66 7 weeks ago 797MB
hello-world latest 74cc54e27dc4 7 weeks ago 10.1kB
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
python 3.7 16d93ae3411b 20 months ago 994MB
openjdk 17-jdk-alpine 264c9bdce361 3 years ago 326MB
ubuntu@ip-172-31-22-77:~$ docker rmi 264c9bdce361 16d93ae3411b 3315249a58c0
Error response from daemon: conflict: unable to delete 264c9bdce361 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 16d93ae3411b (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 3315249a58c0 (must be forced) - image is being used by stopped container 691eaf50d6eb
ubuntu@ip-172-31-22-77:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ip-172-31-22-77:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5ab2f42a2d83 two-tier-backend:latest "python app.py" 2 days ago Exited (1) 3 hours ago keen_goldberg
9249b9f7260a two-tier-backend:latest "python app.py" 2 days ago Exited (1) 2 days ago strange_kapitsa
f37607d23986 flask-app "python run.py" 3 days ago Exited (0) 3 days ago loving_yonath
c9281c7c69c7 flask-app "python run.py" 3 days ago Exited (0) 3 days ago distracted_pasteur
691eaf50d6eb java-app "java Main" 3 days ago Exited (0) 3 days ago beautiful_dhawan
55b3fea71706 hello-world "/hello" 3 days ago Exited (0) 3 days ago crazy_kilby
ubuntu@ip-172-31-22-77:~$ docker rm 691eaf50d6eb
691eaf50d6eb
ubuntu@ip-172-31-22-77:~$ docker rm 55b3fea71706 c9281c7c69c7 f37607d23986
55b3fea71706
c9281c7c69c7
f37607d23986
ubuntu@ip-172-31-22-77:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
flask-app latest 9292f720fa42 3 days ago 1.01GB
java-app latest 3315249a58c0 3 days ago 326MB
mysql latest 5568fddd4f66 7 weeks ago 797MB
hello-world latest 74cc54e27dc4 7 weeks ago 10.1kB
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
python 3.7 16d93ae3411b 20 months ago 994MB
openjdk 17-jdk-alpine 264c9bdce361 3 years ago 326MB
ubuntu@ip-172-31-22-77:~$ docker rmi 264c9bdce361 16d93ae3411b 74cc54e27dc4 3315249a58c0 9292f720fa42
Untagged: hello-world:latest
Untagged: hello-world@sha256:bfbb0cc14f13f9ed1ae86abc2b9f11181dc50d779807ed3a3c5e55a6936dbdd5
Deleted: sha256:74cc54e27dc41bb10dc4b2226072d469509f2f22f1a3ce74f4a59661a1d44602
Deleted: sha256:63a41026379f4391a306242eb0b9f26dc3550d863b7fdbb97d899f6eb89efe72
Untagged: java-app:latest
Deleted: sha256:3315249a58c05c154f62d2128d16bcf1585dcca23fb4bf57173ebddb37e3e215
Deleted: sha256:7402d6be664bef2acd6c85f7b7ff341c985bcf9b6081acd7afc7d21bf5b2387d
Deleted: sha256:2e78c3bc76bc5bf9e9c95c344a1a045bd048dd9a038f382af3f87cdcda964244
Deleted: sha256:982ed9d0be201a23964d6c71c1f0ee3ad8080319dffa66f3e98b6f52780ccf77
Deleted: sha256:96041b4702d4c7365dd00fffb8e6ea218c1348539e662ec0cf1635b4e5360ecf
Deleted: sha256:6f40d7919dc6ae8a00812e231b605c82ba57f9d89609406af4eb2735d838650e
Deleted: sha256:d236981e3769a88c07b2919b0efcfb14f2a37e422866ca6d1fdee62f794d2d0d
Untagged: flask-app:latest
Deleted: sha256:9292f720fa4251539d96516ef114b8b1824887b412ebf2ea2e2dd7f5458fa3c1
Deleted: sha256:658803d48c4db8a0bd7af08a8d90781c1735543a827e4d2fb2724800935da4d9
Deleted: sha256:5c423c547327bf852c0901357124a76782fe08a1921aaaee02978d45684095de
Deleted: sha256:97a96eaf55bf646803fa865118731d09c649bd4ae7098e707bf3aadcf9617314
Deleted: sha256:20d127dfed467557a9f93f54225d1931e61839df8477d2bb8f54a4d42668666e
Deleted: sha256:13b05565215fee2d6fe1a1472619e948a9aeb2f63b4bf604bcba9395976c82d1
Deleted: sha256:6bd2bc1505bc3c4e4f6bedfe4d134d7c1460a628b024dc4af0fd75aa11bb86b2
Error response from daemon: conflict: unable to delete 264c9bdce361 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 16d93ae3411b (cannot be forced) - image has dependent child images
ubuntu@ip-172-31-22-77:~$ docker compose up
no configuration file provided: not found
ubuntu@ip-172-31-22-77:~$ cd projects/
ubuntu@ip-172-31-22-77:~/projects$ ls
flask-app-ecs simple-java-docker two-tier-flask-app
ubuntu@ip-172-31-22-77:~/projects$ rm -rf flask-app-ecs
ubuntu@ip-172-31-22-77:~/projects$ rm -rf simple-java-docker
ubuntu@ip-172-31-22-77:~/projects$ ls
two-tier-flask-app
ubuntu@ip-172-31-22-77:~/projects$ cd two-tier-flask-app/
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ ls
Dockerfile Jenkinsfile README.md docker-compose.yml eks-manifests message.sql templates
Dockerfile-multistage Makefile app.py dummy.txt k8s requirements.txt
ubuntu@ip-172-31-22-77:~/projects/two-tier-flask-app$ docker compose up
WARN[0000] The "UID" variable is not set. Defaulting to a blank string.
WARN[0000] The "GID" variable is not set. Defaulting to a blank string.
WARN[0000] /home/ubuntu/projects/two-tier-flask-app/docker-compose.yml: `version` is obsolete
[+] Running 19/23
⠹ mysql [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 137.9MB / 137.9MB Pulling 19.2s
✔ 20e4dcae4c69 Pull complete 8.1s
✔ 1c56c3d4ce74 Pull complete 8.2s
✔ e9f03a1c24ce Pull complete 8.3s
✔ 68c3898c2015 Pull complete 8.7s
✔ 6b95a940e7b6 Pull complete 8.7s
✔ 90986bb8de6e Pull complete 8.8s
✔ ae71319cb779 Pull complete 10.9s
✔ ffc89e9dfd88 Pull complete 10.9s
⠋ 43d05e938198 Extracting [==================================================>] 56.29MB/56.29MB 19.0s
✔ 064b2d298fba Download complete 2.6s
✔ df9a4d85569b Download complete 2.7s
⠹ flask-app [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 144.9MB / 148.9MB Pulling 19.2s
✔ c29f5b76f736 Pull complete 4.9s
✔ 9315c4821e72 Pull complete 5.2s
✔ 7e8ac65e25aa Pull complete 7.1s
✔ b26995e9f45f Pull complete 7.1s
✔ f27e9cca196b Pull complete 7.2s
✔ ebd02fc03a99 Pull complete 16.4s
✔ 95127ac76e38 Pull complete 16.5s
✔ cabf59ff0be5 Pull complete 17.3s
✔ 39c09f910276 Pull complete 17.9s
⠴ e6201429738d Extracting [======================> ] 3.342MB/7.332MB 19.0s
failed to register layer: write /var/lib/rpm/Packages: no space left on device
Docker remove multiplte images
ubuntu@ip-172-31-22-77:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
vimleshverma16/two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
mysql latest 5568fddd4f66 7 weeks ago 797MB
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
python 3.7 16d93ae3411b 20 months ago 994MB
openjdk 17-jdk-alpine 264c9bdce361 3 years ago 326MB
ubuntu@ip-172-31-22-77:~$ docker rmi $(Docker images -aq)
Command 'Docker' not found, did you mean:
command 'docker' from snap docker (27.5.1)
command 'docker' from deb docker.io (26.1.3-0ubuntu1~24.04.1)
command 'docker' from deb podman-docker (4.9.3+ds1-1ubuntu0.2)
See 'snap info <snapname>' for additional versions.
"docker rmi" requires at least 1 argument.
See 'docker rmi --help'.
Usage: docker rmi [OPTIONS] IMAGE [IMAGE...]
Remove one or more images
ubuntu@ip-172-31-22-77:~$ docker rmi $(docker images -aq)
Untagged: mysql:latest
Untagged: mysql@sha256:146682692a3aa409eae7b7dc6a30f637c6cb49b6ca901c2cd160becc81127d3b
Deleted: sha256:5568fddd4f66008ebae555bfee3e999a8f8e6516fbe974e0af11013e83e241fd
Deleted: sha256:dcfb7b5fc76a9fc636468772924a0b94f399f3215b44a1330efc9b3ab7387c53
Deleted: sha256:4141362c311e6120b69cd765cda0d4169d25c6837cfd00c2d1db0c3211ae937b
Deleted: sha256:060ecb06512a7cfc2d519dd0466b198154633e61df0bab3b55e559ce99113cf3
Deleted: sha256:ca5252e654f6bd8d0ab62227c38d7070049aa95913979c3638a5a632f9bc1cd0
Deleted: sha256:96436c987a3a6a85114df571d96f7c51cf23e7b90804939ff6684824b64c1d27
Deleted: sha256:e1074a2c0f4d3d6940fe7b384f91b9a8fc9f29bdb59141cd8ec915c7cdf1a45e
Deleted: sha256:98e974da3915c2bd53bb2fe8b31e59d039515953d34326bd17773f1dcdc6b981
Deleted: sha256:c8f1c40f14209c25b17ec74892c0aeaee503f4521c160dad8ea4df0d6920ef97
Deleted: sha256:94f93b2b7f8c27e5763d0388aa03e2816def806b60448a4cef575acb674b8588
Deleted: sha256:d7b2257a2277cf62be373f5e32a77274c67cdcdb474af84f2f01b95d8f6ebd0d
Untagged: python:3.7
Untagged: python@sha256:eedf63967cdb57d8214db38ce21f105003ed4e4d0358f02bedc057341bcf92a0
Deleted: sha256:16d93ae3411be3db255b6b52fdfc155a0dff0f697c2e4e3d862caf8d978830b2
Deleted: sha256:30aa40cfcfad4b965cbc5919d97c12ebc649ae816ff99b0b8b38d5d061d8ed14
Deleted: sha256:1911921e665745d0eea01bc79b3226c4b0c5e571922cb09c63e38f63b95ba643
Deleted: sha256:696550003a9ab38411ac5a86e4c3d75070b1b50ef9b0fe517c883c37dc50783a
Deleted: sha256:9329601d29d4d6b2db0ed302d6cd6b3d40515900f1612701564ef7ca04a51d60
Deleted: sha256:3382bea0617cd484ec676f6942b0ba2a89aba3f780f664d45b1703d80e0f92a5
Deleted: sha256:cb1fa8b4f1a65c7e07ad0609926c331536d4cc9572d62ac801f9dd5a38140bc4
Deleted: sha256:ccbecb7ab1ffe3c79a42e78eeb9a211e449a900e76c0991d32be592f5a4b1853
Deleted: sha256:7c85cfa30cb11b7606c0ee84c713a8f6c9faad7cb7ba92f1f33ba36d4731cc82
Untagged: openjdk:17-jdk-alpine
Untagged: openjdk@sha256:4b6abae565492dbe9e7a894137c966a7485154238902f2f25e9dbd9784383d81
Deleted: sha256:264c9bdce361556ba6e685e401662648358980c01151c3d977f0fdf77f7c26ab
Deleted: sha256:c886627e0a95706b0d25b7e38bc0578020aec8dde243a684a0c795e3221f3a84
Deleted: sha256:babf6cf0d64d72bad69955496ee646e0b46b9e7bae2504351c30fbc0261800a8
Deleted: sha256:72e830a4dff5f0d5225cdc0a320e85ab1ce06ea5673acfe8d83a7645cbd0e9cf
Error response from daemon: conflict: unable to delete 482cfa3e3f79 (must be forced) - image is referenced in multiple repositories
Error response from daemon: conflict: unable to delete 482cfa3e3f79 (must be forced) - image is referenced in multiple repositories
Error response from daemon: conflict: unable to delete 1ac6fc93085e (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 5c396f68e74a (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete d15cbc3e831a (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 4535d55739e0 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 8acb4b49952e (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 66ae3293a875 (cannot be forced) - image has dependent child images
Error response from daemon: conflict: unable to delete 1a47c1aaa88f (cannot be forced) - image has dependent child images
ubuntu@ip-172-31-22-77:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
vimleshverma16/two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
ubuntu@ip-172-31-22-77:~$ docker rmi 1a47c1aaa88f
Error response from daemon: conflict: unable to delete 1a47c1aaa88f (cannot be forced) - image has dependent child images
ubuntu@ip-172-31-22-77:~$ docker images --filter since=1a47c1aaa88f
REPOSITORY TAG IMAGE ID CREATED SIZE
two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
vimleshverma16/two-tier-backend latest 482cfa3e3f79 2 days ago 391MB
ubuntu@ip-172-31-22-77:~$ docker rmi -f 482cfa3e3f79
Untagged: two-tier-backend:latest
Untagged: vimleshverma16/two-tier-backend:latest
Untagged: vimleshverma16/two-tier-backend@sha256:768ba0da39d1dd6360f3f7443f874d0f24b13f73ba56307383b5357c43e7bdee
Deleted: sha256:482cfa3e3f792272ec45e4d542e9fc526c128557cbbf17fdf2d9d7a59ac0634e
Deleted: sha256:1ac6fc93085e971384b5a169c78da886aa9b370fa54153b131d198d199603dc0
Deleted: sha256:c0fbb9f4e1265dfcbed7ad0daaccc5a45b716e5453ba4431c5e27984cc1ea5f1
Deleted: sha256:5c396f68e74a4f5bb5fe8acabefee99539e6ad83a45e33462a5c93fcf83626c2
Deleted: sha256:7f1a76c0f47ed3cc0f53d275f716f106e171fec95d3e400bf04e687b91c33ec3
Deleted: sha256:d15cbc3e831aa83fc71f9d95658f727964194bb391cfdc88a438dc0fa7bd741f
Deleted: sha256:767d40cae566c71eb4a496ac62b9611ba55161292a5a51d2dcebe539830401db
Deleted: sha256:4535d55739e0c9cd8bd4ac389e34bc09b5622376d980b6615bd2ebac5d0f3751
Deleted: sha256:aa617b4e56c0e5d1b28932a1c8d0ae5e6d0d0df281042e99f7e7809093ec91d7
Deleted: sha256:8acb4b49952e26af2c31f7258137f8bba0ab71d06dbf361f3338f2d438b176dd
Deleted: sha256:271f8ad0706bb70fe0a84589ae3489f27b0b6857d559daddae99f051e963591c
Deleted: sha256:66ae3293a875d21f12b77f87327b663ffe0d321984e0e9477477b735a76c9a04
Deleted: sha256:8b33f0fcbd9eb3930e19212f357727bb5e7e8ea47f7e0bb6ac0a1e37bd1ae4b6
ubuntu@ip-172-31-22-77:~$ docker rmi -f 482cfa3e3f79
Error response from daemon: No such image: 482cfa3e3f79:latest
ubuntu@ip-172-31-22-77:~$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
ubuntu@ip-172-31-22-77:~$ docker rmi 1a47c1aaa88f
Untagged: python:3.9-slim
Untagged: python@sha256:d1fd807555208707ec95b284afd10048d0737e84b5f2d6fdcbed2922b9284b56
Deleted: sha256:1a47c1aaa88fa84511b9bbd99a17ec50c87b0075bc116fc596ba20518667823c
Deleted: sha256:105ac661dc3e68bac9edd00a527114b512b9055f118cc0a2b2b975afbc7cbdc1
Deleted: sha256:6d2ca8fc11250be5bda00a69def57c09cdfb34647ec794a7690c37e735ce16e9
Deleted: sha256:6522a7e23f89893130163e602bac07ba5c9b6d4c4fde0fc988ba9468e2b57df3
Deleted: sha256:5f1ee22ffb5e68686db3dcb6584eb1c73b5570615b0f14fabb070b96117e351d
ubuntu@ip-172-31-22-77:~$
Docker Important commands
ubuntu@ip-172-31-22-77:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ip-172-31-22-77:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ubuntu@ip-172-31-22-77:~$ docker conatiner ls
docker: 'conatiner' is not a docker command.
See 'docker --help'
ubuntu@ip-172-31-22-77:~$ docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Multi stage docker build
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ docker build -t flaskapp:latest .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 72.19kB
Step 1/6 : FROM python:3.9-slim
3.9-slim: Pulling from library/python
7cf63256a31a: Pull complete
82a59f028fa3: Pull complete
09f8c21e9f8e: Pull complete
fb0009da06dd: Pull complete
Digest: sha256:d1fd807555208707ec95b284afd10048d0737e84b5f2d6fdcbed2922b9284b56
Status: Downloaded newer image for python:3.9-slim
---> 1a47c1aaa88f
Step 2/6 : WORKDIR /app
---> Running in 573871e08d2a
---> Removed intermediate container 573871e08d2a
---> 5c94ab4f4dcd
Step 3/6 : COPY . .
---> eb8c65ac32f1
Step 4/6 : RUN pip install -r requirements.txt
---> Running in 36577ec3b395
Collecting flask==2.2.2
Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.5/101.5 kB 6.3 MB/s eta 0:00:00
Collecting Werkzeug==2.2.2
Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.7/232.7 kB 19.2 MB/s eta 0:00:00
Collecting Jinja2>=3.0
Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.9/134.9 kB 18.6 MB/s eta 0:00:00
Collecting itsdangerous>=2.0
Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Collecting click>=8.0
Downloading click-8.1.8-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.2/98.2 kB 12.1 MB/s eta 0:00:00
Collecting importlib-metadata>=3.6.0
Downloading importlib_metadata-8.6.1-py3-none-any.whl (26 kB)
Collecting MarkupSafe>=2.1.1
Downloading MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20 kB)
Collecting zipp>=3.20
Downloading zipp-3.21.0-py3-none-any.whl (9.6 kB)
Installing collected packages: zipp, MarkupSafe, itsdangerous, click, Werkzeug, Jinja2, importlib-metadata, flask
Successfully installed Jinja2-3.1.6 MarkupSafe-3.0.2 Werkzeug-2.2.2 click-8.1.8 flask-2.2.2 importlib-metadata-8.6.1 itsdangerous-2.2.0 zipp-3.21.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.0.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
---> Removed intermediate container 36577ec3b395
---> 76f4f70c7404
Step 5/6 : EXPOSE 80
---> Running in 0ab2cea0f9ac
---> Removed intermediate container 0ab2cea0f9ac
---> 4be9354d7eee
Step 6/6 : CMD ["python","run.py"]
---> Running in ae43ac8bc74f
---> Removed intermediate container ae43ac8bc74f
---> 9d6d2f58daa9
Successfully built 9d6d2f58daa9
Successfully tagged flaskapp:latest
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ ls
Dockerfile Dockerfile-multi README.md app.py requirements.txt run.py
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ cat dockerfile-multi
cat: dockerfile-multi: No such file or directory
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ cat Dockerfile-multi
# Build Stage
FROM python:3.9-slim AS builder
WORKDIR /app
# Copy dependency file first for efficient caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt --target=/app/deps
# Copy application source code
COPY . .
# Final Distroless Stage
FROM gcr.io/distroless/python3-debian11
WORKDIR /app
# Copy dependencies from the builder stage
COPY --from=builder /app/deps /app/deps
COPY --from=builder /app .
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONPATH="/app/deps"
# Expose the application port
EXPOSE 80
# Run the application
CMD ["run.py"]
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ ls
Dockerfile Dockerfile-multi README.md app.py requirements.txt run.py
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ rm Dockerfile
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ mv Dockerfile-multi Dockerfile
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ docker build -t flask-mini .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 71.17kB
Step 1/13 : FROM python:3.9-slim AS builder
---> 1a47c1aaa88f
Step 2/13 : WORKDIR /app
---> Using cache
---> 5c94ab4f4dcd
Step 3/13 : COPY requirements.txt .
---> a1fe7927132c
Step 4/13 : RUN pip install --no-cache-dir -r requirements.txt --target=/app/deps
---> Running in 0e89391afa4b
Collecting flask==2.2.2
Downloading Flask-2.2.2-py3-none-any.whl (101 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 101.5/101.5 kB 7.4 MB/s eta 0:00:00
Collecting Werkzeug==2.2.2
Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.7/232.7 kB 33.7 MB/s eta 0:00:00
Collecting click>=8.0
Downloading click-8.1.8-py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.2/98.2 kB 280.9 MB/s eta 0:00:00
Collecting itsdangerous>=2.0
Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Collecting importlib-metadata>=3.6.0
Downloading importlib_metadata-8.6.1-py3-none-any.whl (26 kB)
Collecting Jinja2>=3.0
Downloading jinja2-3.1.6-py3-none-any.whl (134 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 134.9/134.9 kB 244.1 MB/s eta 0:00:00
Collecting MarkupSafe>=2.1.1
Downloading MarkupSafe-3.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20 kB)
Collecting zipp>=3.20
Downloading zipp-3.21.0-py3-none-any.whl (9.6 kB)
Installing collected packages: zipp, MarkupSafe, itsdangerous, click, Werkzeug, Jinja2, importlib-metadata, flask
Successfully installed Jinja2-3.1.6 MarkupSafe-3.0.2 Werkzeug-2.2.2 click-8.1.8 flask-2.2.2 importlib-metadata-8.6.1 itsdangerous-2.2.0 zipp-3.21.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 23.0.1 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
---> Removed intermediate container 0e89391afa4b
---> 8c77e8381d1a
Step 5/13 : COPY . .
---> f72112c86d2b
Step 6/13 : FROM gcr.io/distroless/python3-debian11
latest: Pulling from distroless/python3-debian11
1c56d6035a42: Pulling fs layer
e33bce57de28: Pulling fs layer
473d8557b1b2: Pulling fs layer
b6824ed73363: Pull complete
7c12895b777b: Pull complete
33e068de2649: Pull complete
5664b15f108b: Pull complete
27be814a09eb: Pull complete
4aa0ea1413d3: Pull complete
9ef7d74bdfdf: Pull complete
9112d77ee5b1: Pull complete
83f8d4690e1f: Pull complete
a4ba90834fb4: Pull complete
df368711b362: Pull complete
e89169bec965: Pull complete
7f3501c931c2: Pull complete
88934a1bc18c: Pull complete
a3aad1f578f7: Pull complete
fcaeec876d0a: Pull complete
5ecf944de9e0: Pull complete
784ea62d6360: Pull complete
2200e590120d: Pull complete
fe603769b328: Pull complete
0e8b6218a538: Pull complete
a2ed3634dacb: Pull complete
f70eb0cf4e89: Pull complete
5865c6aec071: Pull complete
dc31a37127e6: Pull complete
2ab3301941be: Pull complete
c3be584dba73: Pull complete
db0e7ae97d20: Pull complete
9cb4ee2e5d0b: Pull complete
8542013a0899: Pull complete
e2dabd1add69: Pull complete
254f48094ef6: Pull complete
ce5282d6d71a: Pull complete
3b4e92389233: Pull complete
672b14ebb9c3: Pull complete
54a763b34f4e: Pull complete
a18c1babdfad: Pull complete
ad398edc2347: Pull complete
87e4cb9869cd: Pull complete
b9ef5a00d984: Pull complete
0d9fabdeb7ce: Pull complete
4d41928716cf: Pull complete
c8d474c17886: Pull complete
Digest: sha256:72c0ee6f962df1ad412dc94d0cdf8a0e3197447235da79fa93b2f3e1ac4d2f4e
Status: Downloaded newer image for gcr.io/distroless/python3-debian11:latest
---> db7c2faa8433
Step 7/13 : WORKDIR /app
---> Running in 2535707fb2bf
---> Removed intermediate container 2535707fb2bf
---> 1bf7c0b9e563
Step 8/13 : COPY --from=builder /app/deps /app/deps
---> a2037dead819
Step 9/13 : COPY --from=builder /app .
^[[B ---> 3f6d754325a8
Step 10/13 : ENV PYTHONUNBUFFERED=1
---> Running in 1138a0227cea
---> Removed intermediate container 1138a0227cea
---> 06dc12ef88df
Step 11/13 : ENV PYTHONPATH="/app/deps"
---> Running in 43dd847aa918
---> Removed intermediate container 43dd847aa918
---> ab64f1ce4b7b
Step 12/13 : EXPOSE 80
---> Running in e6e60e9f0725
---> Removed intermediate container e6e60e9f0725
---> 0153bcbc6ec7
Step 13/13 : CMD ["run.py"]
---> Running in 06ee30b199b6
---> Removed intermediate container 06ee30b199b6
---> 2dd462ec4c9c
Successfully built 2dd462ec4c9c
Successfully tagged flask-mini:latest
ubuntu@ip-172-31-22-77:~/flask-app-ecs$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
flask-mini latest 2dd462ec4c9c 6 seconds ago 62.8MB
<none> <none> f72112c86d2b 12 seconds ago 136MB
flaskapp latest 9d6d2f58daa9 16 minutes ago 137MB
python 3.9-slim 1a47c1aaa88f 3 months ago 126MB
gcr.io/distroless/python3-debian11 latest db7c2faa8433 N/A 54.6MB
ubuntu@ip-172-31-22-77:~/flask-app-ecs$