Dockerを使用してCKANというCMSをcentos7のVM上にインストールしているのですが、
公式のドキュメントの
Convenience: paths to named volumes
The files inside named volumes reside on a long-ish path on the host. Purely for convenience, we’ll define environment variables for these paths. We’ll use a prefix VOL_ to avoid overriding variables in docker-compose.yml.:
Find the path to a named volume
docker volume inspect docker_ckan_home | jq -c '.[] | .Mountpoint'
"/var/lib/docker/volumes/docker_ckan_config/_data"
export VOL_CKAN_HOME=
docker volume inspect docker_ckan_home | jq -r -c '.[] | .Mountpoint'
echo $VOL_CKAN_HOME
export VOL_CKAN_CONFIG=
docker volume inspect docker_ckan_config | jq -r -c '.[] | .Mountpoint'
echo $VOL_CKAN_CONFIG
export VOL_CKAN_STORAGE=
docker volume inspect docker_ckan_storage | jq -r -c '.[] | .Mountpoint'
echo $VOL_CKAN_STORAGE
We won’t need to access files inside docker_pg_data directly, so we’ll skip creating the shortcut. As shown further below, we can use psql from inside the ckan container to run commands against the database and import / export files from $VOL_CKAN_HOME.
という部分で何をやっているのかわかりません。
よろしくお願いします。
あなたの回答
tips
プレビュー