summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* 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
* Remove lock existence checks when creating pods/containersMatthew Heon2017-12-14
| | | | | | | | | | | | | | Given that we don't have a good way of cleaning up locks, these could potential cause issues if we ever reuse a container or pod ID Also changes locks dir to use tmpfs, as we can't directly clean up locks Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #138 Approved by: rhatdan
* Update pods to use file locksMatthew Heon2017-12-14
| | | | | | | | | Also includes misc other fixes - adding labels, fixing pod names Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #138 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
* Copy resolv.conf into containerbaude2017-12-14
| | | | | | | | | | | For DNS to work properly, we need to copy the host's /etc/resolv.conf into the container during Init(). We do this by copying it into the containers rundir and then bind mounting it into the container. Signed-off-by: baude <bbaude@redhat.com> Closes: #130 Approved by: baude
* Update kpod info to use new libpod apiumohnani82017-12-14
| | | | | | | Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #124 Approved by: mheon
* .papr.ymlbaude2017-12-13
| | | | | | | | | | Add CNI networking packages to our test hosts. Also upgrade to f27 where possible Signed-off-by: baude <bbaude@redhat.com> Closes: #127 Approved by: baude
* kpod statsbaude2017-12-13
| | | | | | | | | Move kpod stats to the libpod backend. Signed-off-by: baude <bbaude@redhat.com> Closes: #113 Approved by: baude
* Add fix_gofmt targetbaude2017-12-13
| | | | | | | | | | | fix_gofmt will run gofmt -s -w on files that need to be formatted. Useful for developers prior to checking code in. Signed-off-by: baude <bbaude@redhat.com> Closes: #125 Approved by: baude
* selinux issuesbaude2017-12-13
| | | | | | | Signed-off-by: baude <bbaude@redhat.com> Closes: #133 Approved by: rhatdan
* 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
* | document missing commands between docker and kpodAntoine Beaupré2017-12-12
|/ | | | | | | | | | | The list was incomplete. Some commands implemented in both were missing from the main table. We also add a list of commands implemented only in Docker, and only in kpod. Signed-off-by: Antoine Beaupré <anarcat@debian.org> Closes: #122 Approved by: mheon
* 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
* Remove tutorial link from README.mdTomSweeneyRedHat2017-12-12
| | | | | | | Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #120 Approved by: rhatdan
* Merge pull request #103 from surajssd/fix-debug-statementDaniel J Walsh2017-12-11
|\ | | | | Use debugf to allow parsing of format specifier
| * Use debugf to allow parsing of format specifierSuraj Deshmukh2017-12-12
|/ | | | Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
* Merge pull request #112 from umohnani8/kpod_loadMatthew Heon2017-12-11
|\ | | | | Fix misleading print statement in kpod load
| * 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>
* Merge pull request #72 from mheon/file_lockingDaniel J Walsh2017-12-11
|\ | | | | Move containers to file locks from c/storage
| * Small comment update to make use of syncContainer more obviousMatthew Heon2017-12-05
| | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * Remove check for existance of lockfile when retrieving containersMatthew Heon2017-12-05
| | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * Fix lintMatthew Heon2017-12-04
| | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * Fix unit tests and provide more realistic test environmentMatthew Heon2017-12-04
| | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * Remove SQL state locking and rely on sqlite lockingMatthew Heon2017-12-04
| | | | | | | | | | | | | | Also renames some parameters from locksDir -> lockDir for consistency. Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * Move containers to file locks from c/storageMatthew Heon2017-12-04
| | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
* | Merge pull request #94 from mheon/restartDaniel J Walsh2017-12-11
|\ \ | | | | | | Add handling for system restart in libpod
| * | Add ability to refresh state in DBMatthew Heon2017-12-07
| | | | | | | | | | | | | | | | | | | | | Also, ensure we always recreate runtime spec so our net namespace paths will be correct Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * | Do not recreate containers in runc after restartMatthew Heon2017-12-06
| | | | | | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * | Do not recreate OCI spec in init() if it existsMatthew Heon2017-12-05
| | | | | | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * | Fix potential race condition in initializing libpodMatthew Heon2017-12-04
| | | | | | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
| * | Add handling for system restart in libpodMatthew Heon2017-12-04
| |/ | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
* | Merge pull request #111 from mheon/crio_1206Daniel J Walsh2017-12-11
|\ \ | | | | | | Carry CRI-O #1206 to fix a potential runtime issue
| * | Carry CRI-O #1206 to fix a potential runtime issueMatthew Heon2017-12-07
| | | | | | | | | | | | Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
* | | Merge pull request #115 from umohnani8/containersDaniel J Walsh2017-12-11
|\ \ \ | | | | | | | | Vendor in latest upstream containers/image
| * | | Vendor in latest upstream containers/imageumohnani82017-12-11
| |/ / | | | | | | | | | Signed-off-by: umohnani8 <umohnani@redhat.com>
* | | Merge pull request #93 from baude/kpod_execDaniel J Walsh2017-12-11
|\ \ \ | |/ / |/| | kpod exec
| * | 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>
* | Add Artifacts directory to containersumohnani82017-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | Create an artifacts directory in the container's static directory so store container information coming from outside of libpod to specified files An example is to hold data from user specified flags in kpod run/create such as --cap-add, --ipcMode, etc... Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #108 Approved by: mheon
* | 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
* | Vendor in latest urfave/clibaude2017-12-04
|/ | | | | | | | | | The latest urfave/cli has the ability for us to use short options when it is a bool. Signed-off-by: baude <bbaude@redhat.com> Closes: #100 Approved by: rhatdan
* Consolidate mount logicMatthew Heon2017-12-04
| | | | | | | | | | | There are still two places that don't use the new function, export and mount, but both can probably be converted to it in the future. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #99 Approved by: rhatdan
* You can only attach to running containersDaniel J Walsh2017-12-04
| | | | | | | Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #98 Approved by: mheon