baude
3db735c6d1
Short options!
...
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
2017-12-04 20:03:16 +00:00
baude
265efcb9f8
Vendor in latest urfave/cli
...
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
2017-12-04 20:03:16 +00:00
Matthew Heon
92bc448624
Fix potential race condition in initializing libpod
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 14:45:49 -05:00
Matthew Heon
ae5aac50aa
Add handling for system restart in libpod
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 14:29:59 -05:00
Matthew Heon
eb942b1b47
Fix lint
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 14:18:48 -05:00
Matthew Heon
43c51c58ad
Fix unit tests and provide more realistic test environment
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 13:40:27 -05:00
Matthew Heon
e9298a533a
Remove SQL state locking and rely on sqlite locking
...
Also renames some parameters from locksDir -> lockDir for
consistency.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 13:40:27 -05:00
Matthew Heon
abfd18b0db
Move containers to file locks from c/storage
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 13:39:44 -05:00
Matthew Heon
750fc239b5
Consolidate mount logic
...
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
2017-12-04 18:10:52 +00:00
Daniel J Walsh
1f482c9f1f
You can only attach to running containers
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #98
Approved by: mheon
2017-12-04 17:53:23 +00:00
Daniel J Walsh
95cb7a11f1
kpod create should not do an OCI Init
...
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
2017-12-04 17:35:14 +00:00
Daniel J Walsh
55c8b69d8f
When shutting down the runtime we should always close the database
...
Even if the storage fails to shutdown. This patch fixes on TODO.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #97
Approved by: mheon
2017-12-04 17:17:06 +00:00
baude
5c9694a0c1
kpod attach
...
Attach to a running container
Signed-off-by: baude <bbaude@redhat.com>
Closes : #95
Approved by: rhatdan
2017-12-04 17:00:48 +00:00
Daniel J Walsh
adf8809521
Add NetMode, UTSMode and IPCMode
...
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
2017-12-02 15:32:56 +00:00
baude
1f01faf437
kpod stop -a
...
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
2017-12-01 13:18:32 +00:00
Matthew Heon
82018a4a9f
Update Conmon to sync with CRI-O
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #92
Approved by: rhatdan
2017-11-30 23:53:26 +00:00
Matthew Heon
7eb5ce940c
Add schema validation to DB
...
This ensures we don't open a DB with an earlier schema or a
config that differs from ours
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #86
Approved by: rhatdan
2017-11-30 18:05:56 +00:00
baude
ed5d686076
Remove gitvalidation from travis
...
gitvalidation in travis has been problematic. It is already
being done in Fedora and Centos so we have a reliable test
occuring there.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #91
Approved by: rhatdan
2017-11-30 17:42:21 +00:00
Matthew Heon
1f9c8942f1
Add randomly generates container names
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #88
Approved by: baude
2017-11-30 02:03:23 +00:00
baude
742475885e
kpod_start
...
Starts one or more containers.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #83
Approved by: rhatdan
2017-11-29 22:01:47 +00:00
umohnani8
ad255533d4
Fix --volume flag for kpod create and run
...
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
2017-11-29 21:40:12 +00:00
Daniel J Walsh
cefa782e50
Move libpod under containers/storage
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #65
Approved by: mheon
2017-11-29 20:40:50 +00:00
Matthew Heon
13e833a388
Change location of created runc specs to make them survive reboot
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #78
Approved by: rhatdan
2017-11-29 18:43:56 +00:00
Matthew Heon
d55cb0f589
Fix error in runtime_ctr
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #85
Approved by: rhatdan
2017-11-29 17:57:32 +00:00
Matthew Heon
6ba6b186a4
Update gitvalidation epoch to ignore older errors after update
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #85
Approved by: rhatdan
2017-11-29 17:57:32 +00:00
Matthew Heon
681a8c85ed
Ensure that we can't remove paused containers
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #85
Approved by: rhatdan
2017-11-29 17:57:32 +00:00
Matthew Heon
ce3081786b
Fix rmi -f removing containers from storage without telling libpod
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:16 +00:00
Matthew Heon
4a68a5303c
Attempt fix for persistent bash parameter expansion issues
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:16 +00:00
Matthew Heon
3180e38795
Move removal of containers into teardown helper
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:16 +00:00
Matthew Heon
63c09d1017
Fix kpod rm tests returning error code when they should not
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:16 +00:00
Matthew Heon
ed41a290a2
Fix removing running containers
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:16 +00:00
Matthew Heon
66ed73f89f
First pass at fixing test errors
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:16 +00:00
Matthew Heon
e36483b1e6
Fix tests - use rm -a -f instead of nested commands
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:15 +00:00
Matthew Heon
bbef986214
Fix comment on container.Stop()
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:15 +00:00
Matthew Heon
4f8fe2b810
Shut down containers when force stopping the runtime
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:15 +00:00
Matthew Heon
0e3dd5f687
Update container-based tests
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #68
Approved by: rhatdan
2017-11-29 12:15:15 +00:00
Matthew Heon
831e2c30d4
Add ability to kill and stop containers
...
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
2017-11-29 12:15:15 +00:00
umohnani8
a1d0d9f5d1
Update man pages and output for kpod images
...
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
2017-11-28 16:09:13 +00:00
umohnani8
c0eceaa403
Vendor in v0.3.2 of docker/go-units
...
docker/go-units is used in converting bytes to human readable format
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes : #82
Approved by: rhatdan
2017-11-28 16:09:13 +00:00
Daniel J Walsh
ab62fe17ff
Implement kpod --rm code
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #81
Approved by: baude
2017-11-28 15:01:20 +00:00
baude
342ce4db50
kpod ps
...
Wire up kpod ps with the new libpod container backend.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #67
Approved by: rhatdan
2017-11-28 14:47:35 +00:00
Suraj Deshmukh
7eb4772694
remove unused functions and variables
...
Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
Closes : #71
Approved by: rhatdan
2017-11-28 14:30:12 +00:00
TomSweeneyRedHat
d43f786728
Add docker transport to push image before final failure
...
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
Closes : #42
Approved by: rhatdan
2017-11-28 12:53:25 +00:00
Daniel J Walsh
da44ec438d
Merge pull request #80 from umohnani8/kpod_images
...
Fix output of kpod images
2017-11-27 17:11:50 -05:00
Daniel J Walsh
55167ef982
Merge pull request #79 from mheon/fix_create
...
Make 'kpod create' also create the container in runc
2017-11-27 17:11:22 -05:00
Matthew Heon
7c2a75335f
Temporarily disable kpod create tests until kpod rm is ready
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-27 14:54:30 -05:00
umohnani8
c5b09d0a35
Fix output of kpod images
...
Update the output of kpod images to match that of docker images
Signed-off-by: umohnani8 <umohnani@redhat.com>
2017-11-27 14:46:45 -05:00
Matthew Heon
d0f3f1fcad
Fix kpod pause tests - pausing a created container is valid
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-27 14:40:58 -05:00
Matthew Heon
fbbf416233
Make 'kpod create' also create the container in runc
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-27 14:16:19 -05:00
baude
52ea0deee6
kpod_wait
...
Convert to libpod container backend
Signed-off-by: baude <bbaude@redhat.com>
Closes : #70
Approved by: rhatdan
2017-11-27 19:05:59 +00:00