Closed MichaelNino closed 4 years ago
Your assistance or input is greatly appreciated. Any direction would be helpful. I am endeavoring to create a Laravel package for php-lxd and GUI.
@MichaelNino try the following options:
$options = [
'server' => 'https://cloud-images.ubuntu.com/releases',
'alias' => '18.04/amd64',
'protocol' => 'simplestreams',
];
$lxd->containers->create('test-php', $options);
This will download a cloud image for you.
Ah, the $options
array makes more sense with the server
and protocol
keys. Worked perfectly! Thanks!
Hi,
I am creating 3 containers:
test-nginx
,test-php
andtest-mysql
so that I might create a containerized LEMP stack usingphp-lxd
. I first executed:lxc launch
from the terminal to verify LXD is working. Then I endeavored to create the second container,test-php
, usingphp-lxd
. For some reason, LXD responds that "No matching image found" Below are my code snippets:test-nginx
lxc launch images:ubuntu/18.04 test-nginx
test-php
This is my first attempt using both LXD and
php-lxd
. Am I using the correct API call? Is there something I a missing about images? Maybe remote? What is the corresponding API call forlxc launch
?Thanks @ashleyhood
:-)