CHANGE THE ENV TO UAT
Check the environment first
To display disk usage in sub folders
du -hd 1 2>/dev/null
7.8M ./etc
4.0K ./sys
/home/viswar/.pm2/logs
21G ./logs/springboot-kafka-tutorial-out.log
Prune stopped containers and unused images:
You can use the docker system prune command to remove stopped containers, unused images, and other unused data. This will help free up space in the overlay2 folder.
sudo docker system prune
docker ps -a | grep Exited
/var/lib/user/caches
sudo systemctl stop mssql-server
In database
pm2 status
pm2 stop kafka; pm2 stop zookeeper
pm2 save
pm2 flush
docker ps
docker stop $(docker ps -q)
in saravanjs
pm2 stop springboot-kafka-tutorial
Stop All Containers:
docker stop $(docker ps -q)
Remove All Containers:
docker rm $(docker ps -a -q)
13e0c7ca1b37
68c487944a2c
1cc2c67c0edc
db7911b7c050
8fcc35e1f3c5
Remove All Images: (risky)
docker rmi $(docker images -q)
Untagged: eurekaserver:latest
Deleted: sha256:808a26f3ee115e2b29285ae683f2c4f106b57bf64d7ad97aa839adc3254fc269
Untagged: sonarqube:latest
Untagged: sonarqube@sha256:0612e262a597af1dd4d28017db7529238d9b835e1d38b62e5be838f812763572
Deleted: sha256:ba3b520d50eafebd1b4f013898d2eb8e1fbeae2c2f5448fdd98a0dc6541ffec0
Deleted: sha256:3de825f4b89dde7faec40f05f50c7d590520b4f423f928f9844ac1a9d77584d3
Deleted: sha256:79ec3c4cc64f58674f31c30f4394ee1e7780aaf3905da1f827cd7ccdb3b47ef5
Deleted: sha256:71f8faa2934ac05e21954d92350076f817da25191b7198048c9ea3c16c41b56e
Deleted: sha256:85385173acb1fd03b669521d935c4c516a13d0e5239add39977d6ad69632a447
Deleted: sha256:79d5ec3d2ecd325a919348969493ced860f7359c4b90abf8fb0cd278a39b88e5
Deleted: sha256:ba50bea4ce8ee4860acc5fc3645c7efb2a87f3eb1e0776b5abe37fff0eef0881
Deleted: sha256:8839bf99e799f4be296d36c597d73aa814e6f6904e037a955ffa3dda0daec8e8
Deleted: sha256:5498e8c22f6996f25ef193ee58617d5b37e2a96decf22e72de13c3b34e147591
Untagged: postgres:latest
Untagged: postgres@sha256:f58300ac8d393b2e3b09d36ea12d7d24ee9440440e421472a300e929ddb63460
Deleted: sha256:eb634efa7ee4668e7bb7a9afa946987699608e5cff79418d39e7c5302f6ea3e8
Deleted: sha256:40bb6c89588fe5c9d173b2424d4deecb5e378dbaf95466bc0b8f6fca6549329f
to remove all unused data, including containers, images, volumes, and networks.
docker system prune -a --volumes
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all anonymous volumes not used by at least one container
- all images without at least one container associated to them
- all build cache
Are you sure you want to continue? [y/N] y
Deleted Networks:
allinone_spring-network
Deleted Volumes:
b15a635d08c5598835a0d8879d94ab10b6be4650ad9a0c443b77569bc35f7f9d
a932853a035ff7c5967841cd71950d7288da75f017092053e5d7dd302a0ffcbf
19b775a19be3a5f93dc44798d16af535ea278ead80c9e5645cf6c459baaa2615
51b287ccd5683db80fd1325d1eac3e92c9ee76743843d8cf53879daca07da035
58ce436c84f7f6b12c90703e4d58c4af2a4878b0d2c9904039423dacbcd6f429
Deleted build cache objects:
fnrz8i7g6dpgvd2qvuedyk2ty
14i4fpla4axyl4otdrnnjnedg
h6rhjsdcatyyk4hqz23fjen3f
m26n3o033jayq54of3cy3kswm
npy1znnt0mqrwpall8mgkuilj
Certbot failed to authenticate some domains (authenticator: nginx). The
Certificate Authority reported these problems: Timeout during connect (likely
firewall problem)
Solution : add port 80 into asus router port forwarding
certbot –nginx
Deploying certificate
Successfully deployed
certificate for saravanjs.com