Site Tools


docker_images

sur ASW4 le 15/11/2019 :

docker network create --driver bridge nw1
docker volume create --name db61-data
docker run -d --name db61 --env POSTGRES_USER=okuser --env POSTGRES_PASSWORD=6CpZuXmbpm3DbR --env POSTGRES_DB=postgres --network=nw1 --mount source=db61-data,target=/var/lib/postgresql/data library/postgres:11.1
docker volume create --name ok61-data
docker volume create --name ok61-extra-addons
docker run -d --name ok61 --link db61:db -p 7001:8069 --network nw1 --mount source=ok61-data,target=/var/lib/odoo --mount source=ok61-extra-addons,target=/mnt/extra-addons --env POSTGRES_USER=okuser --env POSTGRES_PASSWORD=6CpZuXmbpm3DbR veivaa/odoo:13.0

docker stop ok61 db61

docker commit --message="Snapshot of db61 le 15/11/19" db61 db61_snapshot:191115
docker commit --message="Snapshot of ok61 le 15/11/19" ok61 ok61_snapshot:191115

cd :/var/lib/docker/volumes/

rmdir ok64-data/ ok64-extra-addons/

cp -rf db61-data/ db64-data
cp -rf ok61-data/ ok64-data
cp -rf ok61-extra-addons/ ok64-extra-addons


cd db64-data/
chown -R 999:docker *
cd ../ok64-data/
chown -R  systemd-resolve:systemd-journal *

docker run -d --name db64 --env POSTGRES_USER=okuser --env POSTGRES_PASSWORD=6CpZuXmbpm3DbR --env POSTGRES_DB=ok --network=nw1 --mount source=db64-data,target=/var/lib/postgresql/data library/db61_snapshot:191115
docker run -d --name ok64 --link db64:db -p 7004:8069 --network nw1 --mount source=ok64-data,target=/var/lib/odoo --mount source=ok64-extra-addons,target=/mnt/extra-addons --env POSTGRES_USER=okuser --env POSTGRES_PASSWORD=6CpZuXmbpm3DbR ok61_snapshot:191115
docker_images.txt · Last modified: 2019/11/18 06:25 by 109.31.74.175