This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
технология_vagrant [2025/02/11 11:46] val [Создание и управление VM] |
технология_vagrant [2025/02/11 13:00] (current) val [Provision с использованием внешних скриптов] |
||
---|---|---|---|
Line 169: | Line 169: | ||
λ vagrant up --provision | λ vagrant up --provision | ||
- | λ ###vagrant provision --provision-with provision_once--provision-with provision_once | + | λ ###vagrant provision --provision-with provision_once |
λ ###vagrant reload --provision | λ ###vagrant reload --provision | ||
λ vagrant ssh | λ vagrant ssh | ||
+ | |||
$ date | $ date | ||
+ | $ ip a | ||
</code> | </code> | ||
Line 201: | Line 203: | ||
timedatectl set-timezone Europe/Moscow | timedatectl set-timezone Europe/Moscow | ||
- | apt update | + | apt-get update |
- | #apt install -y docker.io | + | |
+ | apt-get purge resolvconf | ||
+ | rm /etc/resolv.conf | ||
+ | touch /etc/resolv.conf | ||
+ | |||
+ | #apt-get install -y docker.io | ||
</code><code> | </code><code> | ||
λ touch provision_onstart.sh | λ touch provision_onstart.sh |