installation procedure of docker and api-portal 4.2

Document ID : KB000107568
Last Modified Date : 23/07/2018
Show Technical Document Details
Introduction:
User wants to install docket at api-portal on another file system than /var. 
The customer's linux redhat 7.4 server is at the following fs: 

Filesystem Size Used Avail 
/ dev / mapper / vg00-lv_root 7.8G 2.4G 5.0G 33% / 
devtmpfs 16G 0 16G 0% / dev 
tmpfs 16G 0 16G 0% / dev / shm 
tmpfs 16G 545M 16G 4% / run 
tmpfs 16G 0 16G 0% / sys / fs / cgroup 
/ dev / sda1 477M 224M 224M 51% / boot 
/ dev / mapper / vg00-lv_opt 2.0G 265M 1.6G 15% / opt 
/ dev / mapper / vg00-lv_home 477M 2.7M 445M 1% / home 
/ dev / mapper / vg00-lv_var 3.9G 357M 3.3G 10% / var 
/ dev / mapper / vg_portal_prd-lv_portal_prd 197G 61M 187G 1% / opt / apiportal-prd 
/ dev / mapper / vg_portal_log-lv_portal_prdlog 20G 45M 19G 1% / opt / apiportal-prd / log 
/ dev / mapper / vg00-lv_tmp 4.8G 21M 4.6G 1% / tmp 

Please confirm how this is possible to do so?
Question:
User wants to install docket at api-portal on another file system than /var. 
The customer's linux redhat 7.4 server is at the following fs: 

Filesystem Size Used Avail 
/ dev / mapper / vg00-lv_root 7.8G 2.4G 5.0G 33% / 
devtmpfs 16G 0 16G 0% / dev 
tmpfs 16G 0 16G 0% / dev / shm 
tmpfs 16G 545M 16G 4% / run 
tmpfs 16G 0 16G 0% / sys / fs / cgroup 
/ dev / sda1 477M 224M 224M 51% / boot 
/ dev / mapper / vg00-lv_opt 2.0G 265M 1.6G 15% / opt 
/ dev / mapper / vg00-lv_home 477M 2.7M 445M 1% / home 
/ dev / mapper / vg00-lv_var 3.9G 357M 3.3G 10% / var 
/ dev / mapper / vg_portal_prd-lv_portal_prd 197G 61M 187G 1% / opt / apiportal-prd 
/ dev / mapper / vg_portal_log-lv_portal_prdlog 20G 45M 19G 1% / opt / apiportal-prd / log 
/ dev / mapper / vg00-lv_tmp 4.8G 21M 4.6G 1% / tmp 

Please confirm how this is possible to do so?
Environment:
Product: API PORTAL, Release: 4.2, Operating System: Red Hat Linux 7.4
Answer:
The user needs to create a file in /etc/docker/daemon.json with the following details:

{
"exec-root":"/opt/data/docker/run",
"data-root":"/opt/data/docker/lib"
}

and start the installation of the API Portal using the standard document :
 >> config.sh 
 >> portal.sh to deploy the docker

the actual installation deploys the images in "/ opt / data / docker / lib": 
17G. 
[root @ superportal lib] # pwd 
/ Opt / data / docker / lib