mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-11-23 10:44:09 +08:00
Improved systemd-related instructions
This commit is contained in:
parent
a494e3e564
commit
43c65b5430
@ -360,14 +360,12 @@ sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-util
|
|||||||
sudo yum install libvirt qemu-kvm
|
sudo yum install libvirt qemu-kvm
|
||||||
|
|
||||||
# then run
|
# then run
|
||||||
sudo systemctl enable libvirtd.service
|
sudo systemctl enable --now libvirtd
|
||||||
sudo systemctl enable virtlogd.service
|
sudo systemctl enable --now virtlogd
|
||||||
|
|
||||||
echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
|
echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
|
||||||
|
|
||||||
sudo modprobe kvm
|
sudo modprobe kvm
|
||||||
|
|
||||||
# reboot
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Start the same container later (persistent disk)
|
# Start the same container later (persistent disk)
|
||||||
@ -501,7 +499,7 @@ sudo dockerd
|
|||||||
sudo nohup dockerd &
|
sudo nohup dockerd &
|
||||||
|
|
||||||
# or enable it in systemd
|
# or enable it in systemd
|
||||||
sudo systemctl enable docker
|
sudo systemctl enable --now docker
|
||||||
```
|
```
|
||||||
|
|
||||||
# How to Forward Additional Ports from the guest.
|
# How to Forward Additional Ports from the guest.
|
||||||
|
Loading…
Reference in New Issue
Block a user