summaryrefslogtreecommitdiff
path: root/cmd/kpod
Commit message (Collapse)AuthorAge
* Rename all references to kpod to podmanDaniel J Walsh2017-12-18
| | | | | | | | | The decision is in, kpod is going to be named podman. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #145 Approved by: umohnani8
* CleanUp problems found my make lint.Daniel J Walsh2017-12-18
| | | | | | | | | Remove or comment out unused functions. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #145 Approved by: umohnani8
* Remove debugu from imagesbaude2017-12-15
| | | | | | | Signed-off-by: baude <bbaude@redhat.com> Closes: #141 Approved by: baude
* Ensure libkpod.Config defaults don't override libpod defaultsMatthew Heon2017-12-14
| | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
* Temporarily unconditionally configure network namespacesMatthew Heon2017-12-14
| | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
* Fix Travis testsMatthew Heon2017-12-14
| | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
* Wire networking into kpod create/runMatthew Heon2017-12-14
| | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #109 Approved by: mheon
* kpod topbaude2017-12-14
| | | | | | | | | Display information about processes in a running container. Signed-off-by: baude <bbaude@redhat.com> Closes: #121 Approved by: rhatdan
* Add support for dir transport to kpod saveumohnani82017-12-14
| | | | | | | | | | | | | | | | | kpod save can now save images to directories using the dir transport. Manifest conversion is also possible. To save with the oci manifest type set --format to oci-dir and to save with the v2s2(docker) manifest type, set --format to docker-dir. The layers can be compressed as well when saving to a directory using the --compress flag. Added functionality to kpod load to be able to load image from a directory Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #137 Approved by: rhatdan
* Add manifest type conversion to kpod pushumohnani82017-12-14
| | | | | | | | | | | User can select from 3 manifest types: oci, v2s1, or v2s2 e.g kpod push --format v2s2 alpine dir:my-directory Added "compress" flag to enable compression when true Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #126 Approved by: rhatdan
* Check for mutually exclusive flagsumohnani82017-12-14
| | | | | | | | | | Error out if more than one mutually exclusive flags are passed in to kpod ps Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #128 Approved by: rhatdan
* Clear up fragments of the old apiumohnani82017-12-14
| | | | | | | | | | As everything is being moved over to the new container api removing files that depended on the old api Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #116 Approved by: rhatdan
* Handle artifacts not found more gracefullyumohnani82017-12-14
| | | | | | | | | | | If the artifacts file "create-config" is not found when doing kpod inspect, just print the error and move on to print out the rest of the inspect info Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #134 Approved by: mheon
* Update kpod info to use new libpod apiumohnani82017-12-14
| | | | | | | Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #124 Approved by: mheon
* kpod statsbaude2017-12-13
| | | | | | | | | Move kpod stats to the libpod backend. Signed-off-by: baude <bbaude@redhat.com> Closes: #113 Approved by: baude
* Merge pull request #106 from umohnani8/kpod_inspectMatthew Heon2017-12-13
|\ | | | | Update kpod inspect to use the new container state
| * Update kpod inspect to use the new container stateumohnani82017-12-12
| | | | | | | | | | | | | | | | | | kpod inspect now uses the new libpod container state and closely matches the output of docker inspect some aspects of it are still WIP as the libpod container state is still being worked on Signed-off-by: umohnani8 <umohnani@redhat.com>
* | \t was not being recognized as tab in --formatumohnani82017-12-12
|/ | | | | | | | | | | When doing kpod images --format "{{.ID}}\t{{.Tag}}" the "\t" was being passed in as a string of "\" and "t" instead of as a tab character. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #123 Approved by: rhatdan
* We don't support VolumesFrom or linksDaniel J Walsh2017-12-12
| | | | | | | Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #118 Approved by: mheon
* Use debugf to allow parsing of format specifierSuraj Deshmukh2017-12-12
| | | | Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
* Fix misleading print statement in kpod loadumohnani82017-12-11
| | | | | | | | | When loading an image, kpod load would print something like "Trying to pull docker.io/library/alpine...", which is misleading and makes it sound like its pulling it form the registry. Fixed this by removing these print statements for kpod load Signed-off-by: umohnani8 <umohnani@redhat.com>
* kpod execbaude2017-12-11
| | | | | | | | | | | | | | Initial wiring of kpod exec. We wont support the following options for exec: * detach -- unsure of use case * detach-keys -- not supported by runc * interactive -- all terminals will be interactive Not adding exec tests as we need to think about how to support a test that requires console access but our CI tests have no console. Signed-off-by: baude <bbaude@redhat.com>
* Fix reference to libkpod to libpodDaniel J Walsh2017-12-05
| | | | | | | | | ps.go no longer uses libkpod Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #104 Approved by: mheon
* Add Linux Root Propagation to kpod create and runumohnani82017-12-05
| | | | | | | | | | | Add [r]shared, [r]private, [r]slave functionality to the --volume flag for kpod create and kpod run This sets the root propagation for each bind mount Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #87 Approved by: rhatdan
* Prune kpod psbaude2017-12-05
| | | | | | | | | Prune libkpod from kpod ps. Remove unused functions. Signed-off-by: baude <bbaude@redhat.com> Closes: #102 Approved by: rhatdan
* Remove kpod renameMatthew Heon2017-12-04
| | | | | | | | | | Libpod containers are immutable once created. They cannot be renamed after created. As such remove kpod rename. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #101 Approved by: baude
* Short options!baude2017-12-04
| | | | | | | | | | | | Any subcommand that has two or more booleon short options can now combine those two options. For example: kpod rmi -af (Remove all images forceably) Signed-off-by: baude <bbaude@redhat.com> Closes: #100 Approved by: rhatdan
* kpod create should not do an OCI InitDaniel J Walsh2017-12-04
| | | | | | | | | | | We need to differentiate between a kpod create and a kpod start kpod create should create all of the data for libpod, but kpod start should generate content for OCI Runtime (runc) in order to run. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #96 Approved by: mheon
* kpod attachbaude2017-12-04
| | | | | | | | | Attach to a running container Signed-off-by: baude <bbaude@redhat.com> Closes: #95 Approved by: rhatdan
* Add NetMode, UTSMode and IPCModeDaniel J Walsh2017-12-02
| | | | | | | | | | | | | | Allow kpod create/run to create contianers in different network namespaces, uts namespaces and IPC Namespaces. This patch just handles the simple join the host, or another containers namespaces. Lots more work needed to full integrate --net Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #64 Approved by: mheon
* kpod stop -abaude2017-12-01
| | | | | | | | | | Stop all running containers with single switch. Useful for maintainence of a system or integration tests. Signed-off-by: baude <bbaude@redhat.com> Closes: #90 Approved by: rhatdan
* kpod_startbaude2017-11-29
| | | | | | | | | Starts one or more containers. Signed-off-by: baude <bbaude@redhat.com> Closes: #83 Approved by: rhatdan
* Fix --volume flag for kpod create and runumohnani82017-11-29
| | | | | | | | | | Enable the --volume flag to validate user input and add functionality for :z and :Z options Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #84 Approved by: mheon
* Add ability to kill and stop containersMatthew Heon2017-11-29
| | | | | | | | | | | | | | Also migrates kpod kill and kpod stop to libpod to use the new code Fixes force removing containers, and actually deletes containers in runc when removing them Start is now capable of starting even when the container is unmounted Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #68 Approved by: rhatdan
* Update man pages and output for kpod imagesumohnani82017-11-28
| | | | | | | | | | | | | The size had a precision of 4, but wanted a precision of 3 to match the output of docker images updated the man page with more examples vendored in new version of docker/go-units to allow for customized precisions Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #82 Approved by: rhatdan
* Implement kpod --rm codeDaniel J Walsh2017-11-28
| | | | | | | Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #81 Approved by: baude
* kpod psbaude2017-11-28
| | | | | | | | | Wire up kpod ps with the new libpod container backend. Signed-off-by: baude <bbaude@redhat.com> Closes: #67 Approved by: rhatdan
* remove unused functions and variablesSuraj Deshmukh2017-11-28
| | | | | | | Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com> Closes: #71 Approved by: rhatdan
* Merge pull request #80 from umohnani8/kpod_imagesDaniel J Walsh2017-11-27
|\ | | | | Fix output of kpod images
| * Fix output of kpod imagesumohnani82017-11-27
| | | | | | | | | | | | Update the output of kpod images to match that of docker images Signed-off-by: umohnani8 <umohnani@redhat.com>
* | Merge pull request #79 from mheon/fix_createDaniel J Walsh2017-11-27
|\ \ | |/ |/| Make 'kpod create' also create the container in runc
| * Make 'kpod create' also create the container in runcMatthew Heon2017-11-27
| | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
* | kpod_waitbaude2017-11-27
| | | | | | | | | | | | | | | | | | Convert to libpod container backend Signed-off-by: baude <bbaude@redhat.com> Closes: #70 Approved by: rhatdan
* | kpod_rm: Add option for --allbaude2017-11-27
|/ | | | | | | | | | | | Remove all containers with -a, --all. Enable kpod rm tests which were all set to skip. Add two tests for -a Signed-off-by: baude <bbaude@redhat.com> Closes: #74 Approved by: rhatdan
* Create|Run container from Image IDbaude2017-11-27
| | | | | | | | | | | As reported in Issue #50, we need to be able to run or create a container based on an image ID (as well as name). Signed-off-by: baude <bbaude@redhat.com> Closes: #76 Approved by: rhatdan
* kpod run, needs to shutdown the storage driver when doneDaniel J Walsh2017-11-27
| | | | | | | Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #73 Approved by: mheon
* Update kpod pause and unpause to use new container stateumohnani82017-11-24
| | | | | | | Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #66 Approved by: mheon
* Copy some verification code out of Docker to verify user inputDaniel J Walsh2017-11-22
| | | | | | | | | | Added lots of verification code to make sure resourses asociated with containers is correct. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #60 Approved by: umohnani8
* Update kpod logs to use the new container state and runtimeUrvashi Mohnani2017-11-22
| | | | | | | Signed-off-by: Urvashi Mohnani <umohnani@redhat.com> Closes: #62 Approved by: rhatdan
* Update kpod mount and umount to use the new stateumohnani82017-11-22
| | | | | | | | | | The new state for containers has been added moved kpod mount and umount over to use it Signed-off-by: Urvashi Mohnani <umohnani@redhat.com> Closes: #57 Approved by: rhatdan