Files
webgui/plugins/dynamix.docker.manager/DockerRepositories.page
Eric Schultz 4f560d7ee5 Docker code cleanup/refactor and bug fixes:
- Dont start container after update if it was in a stopped state before the update

- Dont try to stop a container if it is not running (was causing warnings to be logged)

- Reduced script tag generation for docker pull operations

- Correctly clean up old orphan images after updating a container (was broken before)

- Eliminated race condition when deleting both container and image

- Switched to use SweetAlert instead of jQuery UI dialogs for prompts and alerts
2016-02-12 07:15:23 -08:00

37 lines
1.4 KiB
Plaintext

Menu="Docker:2"
Title="Docker Repositories"
Cond="(pgrep('docker')!==false)"
---
<?PHP
/* Copyright 2015, Lime Technology
* Copyright 2015, Guilherme Jardim, Eric Schultz, Jon Panozzo.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<?
// Add the Docker JSON client
require_once '/usr/local/emhttp/plugins/dynamix.docker.manager/include/DockerClient.php';
// Repos file
$template_repos = $dockerManPaths['template-repos'];
?>
<form markdown="1" method="POST" action="/plugins/dynamix.docker.manager/include/UpdateConfig.php" target="progressFrame">
<input type="hidden" name="#action" value="templates" />
Template repositories:
: <textarea name="template_repos" rows="5" cols="100" style="width:550px"><?=@file_get_contents($template_repos);?></textarea>
> Use this field to add template repositories.
> Docker templates are used to facilitate the creation and re-creation of Docker containers. Please setup one per line.
>
> For a list of popular community-supported repositories, visit here: <a href="http://lime-technology.com/forum/index.php?topic=37958.0" target="_blank">http://lime-technology.com/forum/index.php?topic=37958.0</a>
&nbsp;
: <input type="submit" value="Save" />
</form>