|
| 1 | +/* |
| 2 | + Copyright (C) 2025 Michael Ablassmeier <abi@grinser.de> |
| 3 | +
|
| 4 | +This program is free software: you can redistribute it and/or modify |
| 5 | +it under the terms of the GNU General Public License as published by |
| 6 | +the Free Software Foundation, either version 3 of the License, or |
| 7 | +(at your option) any later version. |
| 8 | +
|
| 9 | +This program is distributed in the hope that it will be useful, |
| 10 | +but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +GNU General Public License for more details. |
| 13 | +
|
| 14 | +You should have received a copy of the GNU General Public License |
| 15 | +along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | +*/ |
1 | 17 | package main
|
2 | 18 |
|
3 | 19 | import (
|
|
27 | 43 | )
|
28 | 44 |
|
29 | 45 | func main() {
|
30 |
| - |
| 46 | + InfoPrint("%s: %s %s %s ", os.Args[0], version, commit, date) |
31 | 47 | bindAddress := flag.String("bind", "127.0.0.1:2222", "bind address, 127.0.0.1:2222, use :2222 for all")
|
32 | 48 | flag.Parse()
|
33 | 49 |
|
@@ -133,14 +149,13 @@ func dockerRun(cfg *container.Config, hostcfg *container.HostConfig, sess ssh.Se
|
133 | 149 | cleanup = func() {}
|
134 | 150 | ctx := context.Background()
|
135 | 151 |
|
136 |
| - InfoPrint("Image: %s", sess.User()) |
137 | 152 | cImage := sess.User()
|
| 153 | + InfoPrint("Image: %s", cImage) |
138 | 154 |
|
139 | 155 | networkingConfig := network.NetworkingConfig{}
|
140 | 156 | platformConfig := v1.Platform{
|
141 | 157 | OS: "linux",
|
142 | 158 | Architecture: "amd64",
|
143 |
| - // Variant: "minimal", |
144 | 159 | }
|
145 | 160 | if imageExistsLocally(ctx, cImage, docker) != true {
|
146 | 161 | sess.Write([]byte("Image [" + cImage + "] not found, attempting to fetch from repository ..\n"))
|
|
0 commit comments