-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPODMAN.txt
32 lines (19 loc) · 978 Bytes
/
PODMAN.txt
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
To use PODMAN in production follow these steps to import and run container:
1. In local machine:
1.1 BUILD (./BUILD.sh <path-export-image>):
- ./BUILD.sh ./dist/ciso8583_ots_a.tgz
Or manually with (After docker build):
- docker image save ciso8583_ots_a | gzip > ./dist/ciso8583_ots_a.tgz
1.2 UPLOAD:
Upload the image to production
2. In remote machine:
1.2 GZIP && RUN (./PODMAN.sh <path-import-image>):
- cd dist
- ./PODMAN.sh ./dist/ciso8583_ots_a.tgz
Or manually with:
- cd dist
- gzip -d ./ciso8583_ots_a.tgz
- ./STOP.sh podman
- podman image rm ciso8583_ots_a
- podman image load -i ./ciso8583_ots_a.tar
- podman run -dit --name ciso8583_ots_a -p 9101:9101 -v /etc/localtime:/etc/localtime:ro -v ciso8583_ots_a_logs:/opt/Ciso8583/log ciso8583_ots_a