fix: mount necessary configuration and data directories to protocol container
This commit is contained in:
@@ -534,7 +534,7 @@ SH;
|
||||
|
||||
$cmdRun = 'docker run --network host --privileged -d --name ' . $container . ' ubuntu:22.04 sleep infinity';
|
||||
$send(['type' => 'cmd', 'cmd' => $cmdRun]);
|
||||
$run = $this->runHostCommandChecked('docker run --network host --privileged -d -v /var/run/docker.sock:/var/run/docker.sock --name ' . escapeshellarg($container) . ' ubuntu:22.04 sleep infinity');
|
||||
$run = $this->runHostCommandChecked('docker run --network host --privileged -d -v /var/run/docker.sock:/var/run/docker.sock -v /opt/amnezia:/opt/amnezia -v /etc/aivpn:/etc/aivpn -v /etc/amnezia:/etc/amnezia --name ' . escapeshellarg($container) . ' ubuntu:22.04 sleep infinity');
|
||||
if ($run['rc'] !== 0) {
|
||||
$send(['type' => 'error', 'error' => 'Docker not accessible: ' . trim($run['out'])]);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user