diff --git a/RELEASE.md b/RELEASE.md index 3bf1954..91018fc 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -192,7 +192,7 @@ npm run release - `container start/stop/restart` - Container lifecycle - `container delete` - Remove containers - `container logs --follow` - Real-time log streaming -- `container images ls/pull/push/delete` - Image operations +- `container images list/pull/push/delete` - Image operations - `container build` - Build from Dockerfile - `container registry login/logout` - Authentication - `container system start/stop` - Daemon control diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 403eb10..9a61a54 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -132,10 +132,10 @@ sudo container system start #### **1. Test Images Command** ```bash # Check if this works -container images ls +container images list # This is what the GUI uses -container images ls --format table +container images list --format table ``` #### **2. Refresh Images** diff --git a/package-lock.json b/package-lock.json index d1a632d..dfd65b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "container-gui", - "version": "1.0.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "container-gui", - "version": "1.0.0", + "version": "1.1.1", "dependencies": { "@tauri-apps/api": "^2.1.1", "@testing-library/dom": "^10.4.0", diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index c01a1b3..21756ad 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -15,6 +15,7 @@ import { import clsx from 'clsx'; import { useTheme } from './ThemeProvider'; import ContainerSystemStatus from './ContainerSystemStatus'; +import packageJson from '../../package.json'; const Sidebar = () => { const location = useLocation(); @@ -91,7 +92,7 @@ const Sidebar = () => {
- Container GUI v1.0.0 + Container GUI v{packageJson.version}
diff --git a/src/routes/Images.jsx b/src/routes/Images.jsx index 5fb4a23..0307659 100644 --- a/src/routes/Images.jsx +++ b/src/routes/Images.jsx @@ -16,7 +16,7 @@ const Images = () => { const fetchImages = async () => { try { setLoading(true); - const result = await invoke('run_container_command', { args: ['images', 'ls'] }); + const result = await invoke('run_container_command', { args: ['images', 'list'] }); if (result.success) { // Parse the output to create a basic list (Apple Container format: NAME TAG DIGEST) @@ -187,7 +187,7 @@ const Images = () => { onClick={async () => { console.log('Testing images command...'); try { - const result = await invoke('run_container_command', { args: ['images', 'ls'] }); + const result = await invoke('run_container_command', { args: ['images', 'list'] }); console.log('Test result:', result); alert(`Images command test:\nSuccess: ${result.success}\nOutput: ${result.stdout.substring(0, 100)}...`); } catch (error) { diff --git a/src/utils/containerUtils.js b/src/utils/containerUtils.js index 79a986e..6e2b936 100644 --- a/src/utils/containerUtils.js +++ b/src/utils/containerUtils.js @@ -250,7 +250,7 @@ export const CONTAINER_COMMANDS = { PUSH: ['images', 'push'], BUILD: 'build', TAG: 'tag', - IMAGES: ['images', 'ls'], + IMAGES: ['images', 'list'], // System management SYSTEM_START: ['system', 'start'],