You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
557 B
20 lines
557 B
4 weeks ago
|
$container_name = "moodle"
|
||
|
$image_name = "moodle"
|
||
|
$build_name = "moodle"
|
||
|
$code_location = "C:\Users\devuser\Documents\code\exam\moodle"
|
||
|
# тома
|
||
|
$moodle_data = "moodle-data"
|
||
|
$moodle_html = "moodle-html"
|
||
|
|
||
|
# Остановить и удалить существующий контейнер
|
||
|
docker stop $container_name
|
||
|
docker rm $container_name
|
||
|
|
||
|
# Удалить существующий образ
|
||
|
docker rmi $image_name
|
||
|
|
||
|
# удалить тома
|
||
|
docker volume rm $moodle_data
|
||
|
docker volume rm $moodle_html
|
||
|
|
||
|
docker builder prune --force
|