-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
32 lines (23 loc) · 746 Bytes
/
Copy pathrun.sh
File metadata and controls
32 lines (23 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#sudo -E http_proxy="$http_proxy" dnf install -y podman podman-docker --allowerasing
#vi /etc/containers/containers.conf
#```
#[containers]
## Let containers use the proxy if the host has the env vars set
#http_proxy = true
#[engine]
#env = ["HTTP_PROXY=http://hksarg:8080", "HTTPS_PROXY=http://hksarg:8080", "NO_PROXY=localhost,127.0.0.1"]
#```
#sudo systemctl enable --now podman.socket
#sudo systemctl restart podman.socket
#podman pull hello-world
#podman compose up -d
podman ps -a
# Stop and remove existing containers
podman-compose down
# Rebuild with the new changes and start fresh
podman-compose up -d
sleep 30
# Check the logs to verify everything is working
podman-compose logs
#podman-compose run smspanel bash