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
baude
99f905243b
Narrow gofmt targets
...
Disregard _output for gofmt'ing
Signed-off-by: baude <bbaude@redhat.com>
Closes : #77
Approved by: rhatdan
2017-11-27 17:17:11 +00:00
baude
dd88ce005f
kpod_rm: Add option for --all
...
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
2017-11-27 16:46:06 +00:00
baude
61e0ab4f47
Create|Run container from Image ID
...
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
2017-11-27 16:41:08 +00:00
Daniel J Walsh
548f1516de
kpod run, needs to shutdown the storage driver when done
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #73
Approved by: mheon
2017-11-27 14:22:47 +00:00
umohnani8
b1a3b03068
Update kpod pause and unpause to use new container state
...
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes : #66
Approved by: mheon
2017-11-24 15:53:17 +00:00
Daniel J Walsh
195d48d86d
Copy some verification code out of Docker to verify user input
...
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
2017-11-22 20:53:15 +00:00
Daniel J Walsh
c344fe61c1
Update vendoring
...
Update version of docker to pull in lates code
Remove kubernetes since libpod is not tied to it.
Remove a few other packages that we don't seem to use.
Left in the networking stuff, since we will hopefully be wiring that together.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #60
Approved by: umohnani8
2017-11-22 20:53:15 +00:00
Urvashi Mohnani
ee4051db61
Update kpod logs to use the new container state and runtime
...
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Closes : #62
Approved by: rhatdan
2017-11-22 19:33:13 +00:00
umohnani8
40dce698d3
Update kpod mount and umount to use the new state
...
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
2017-11-22 18:23:19 +00:00
Matthew Heon
34ba0cb8a9
Order containers returned from state and make container config public
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #63
Approved by: baude
2017-11-22 18:12:57 +00:00
Daniel J Walsh
bd4e106de3
Add support for pid ns
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #54
Approved by: umohnani8
2017-11-22 16:46:53 +00:00
Urvashi Mohnani
2a3934f1da
Update kpod export to use the new container state and runtime
...
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Closes : #59
Approved by: rhatdan
2017-11-22 16:17:06 +00:00
Daniel J Walsh
91b406ea4a
Need to block access to kernel file systems in /proc and /sys
...
Users of kpod run could use these file systems to perform a breakout
or to learn valuable system information.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #61
Approved by: mheon
2017-11-22 15:49:56 +00:00
Urvashi Mohnani
768fb6fe0f
Update kpod rm to use new container state
...
kpod rm now uses the new container state and runtime
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Closes : #58
Approved by: mheon
2017-11-21 22:03:13 +00:00
Matthew Heon
4ff251d911
Add PID to the containers used to test SQLite state
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #56
Approved by: rhatdan
2017-11-21 20:09:09 +00:00
Matthew Heon
152882bf19
Add ability to retrieve container's log path to API
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #56
Approved by: rhatdan
2017-11-21 20:09:09 +00:00
Matthew Heon
8e76ebcf6e
Add ability to update container status from runc
...
Wire this in to all state-bound container operations to ensure
syncronization of container state.
Also exposes PID of running containers via API.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #56
Approved by: rhatdan
2017-11-21 20:09:09 +00:00
Urvashi Mohnani
7b736e3333
Mention docker login for creds authentication in documentation
...
Since we fall back to checking $HOME/.docker/config.json, which is set by docker login,
if the creds are not found in $XDG_RUNTIME_DIR/containers/auth.json, which is set by kpod login
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Closes : #55
Approved by: rhatdan
2017-11-21 18:08:59 +00:00
Daniel J Walsh
c75c319ea2
Add support for oom functions
...
Add tests for oom-kill-disable and oom-kill-adj
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #52
Approved by: TomSweeneyRedHat
2017-11-21 15:33:16 +00:00