...
This commit is contained in:
@@ -8,14 +8,23 @@ fn nerdctl_download(){
|
||||
copy_bin(`/tmp/${name}/*`);
|
||||
delete(`/tmp/${name}`);
|
||||
|
||||
screen_kill("containerd");
|
||||
let name="containerd";
|
||||
let url="https://github.com/containerd/containerd/releases/download/v2.1.2/containerd-2.1.2-linux-amd64.tar.gz";
|
||||
download(url,`/tmp/${name}`,20000);
|
||||
copy_bin(`/tmp/${name}/bin/*`);
|
||||
// copy_bin(`/tmp/${name}/bin/*`);
|
||||
delete(`/tmp/${name}`);
|
||||
|
||||
screen_kill("containerd");
|
||||
let cfg = `
|
||||
[[registry]]
|
||||
location = "localhost:5000"
|
||||
insecure = true
|
||||
`;
|
||||
file_write("/etc/containers/registries.conf", dedent(cfg));
|
||||
screen_new("containerd", "containerd");
|
||||
sleep(1);
|
||||
nerdctl_remove_all();
|
||||
run("nerdctl run -d -p 5000:5000 --name registry registry:2").log().execute();
|
||||
|
||||
package_install("buildah");
|
||||
package_install("runc");
|
||||
|
Reference in New Issue
Block a user