Michael Crosby
979a4cdacd
Merge pull request #10152 from ashahab-altiscale/9875-cap-add-all
...
SEND CAPABILITY IDS TO LXC
2015-01-19 10:46:22 -08:00
Doug Davis
9ab73260f8
Docker run -e FOO should erase FOO if FOO isn't set in client env
...
See #10141 for more info, but the main point of this is to make sure
that if you do "docker run -e FOO ..." that FOO from the current env
is passed into the container. This means that if there's a value, its
set. But it also means that if FOO isn't set then it should be unset in
the container too - even if it has to remove it from the env. So,
unset HOSTNAME
docker run -e HOSTNAME busybox env
should _NOT_ show HOSTNAME in the list at all
Closes #10141
Signed-off-by: Doug Davis <dug@us.ibm.com >
2015-01-19 08:00:32 -08:00
Abin Shahab
79f17dcf74
LXC needs stdin for container to remain up
...
To run shell(and not exit), lxc needs STDIN. Without STDIN open, it will exit 0.
Signed-off-by: Abin Shahab <ashahab@altiscale.com > (github: ashahab-altiscale)
2015-01-18 04:07:20 +00:00
Brian Goff
a738df0354
Fix volumes-from re-applying on each start
...
Fixes #9709
In cases where the volumes-from container is removed and the consuming
container is restarted, docker was trying to re-apply volumes from that
now missing container, which is uneccessary since the volumes are
already applied.
Also cleaned up the volumes-from parsing function, which was doing way more than
it should have been.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2015-01-17 07:14:25 -05:00
Brian Goff
b8f7526fc6
Make .dockercfg with json.MarshallIndent
...
Fixes #10129
Makes the .dockercfg more human parsable.
Also cleaned up the (technically) racey login test.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2015-01-17 07:05:56 -05:00
Abin Shahab
bff3509e43
SEND CAPABILITY IDS TO LXC
...
Sending capability ids instead of capability names ot LXC for --cap-add and --cap-drop.
Also fixed tests.
Docker-DCO-1.1-Signed-off-by: Abin Shahab <ashahab@altiscale.com > (github: ashahab-altiscale)
2015-01-17 04:01:52 +00:00
Derek McGowan
f29aacbc48
Fix failing integration tests
...
Signed-off-by: Derek McGowan <derek@mcgstyle.net > (github: dmcgowan)
2015-01-16 11:34:45 -08:00
HuKeping
c3ed49dcdb
restart: add test for recording restart policy name
...
Add test for recording restart policy name on
- restart=no
- restart=always
- restart=on-failure
Signed-off-by: Hu Keping <hukeping@huawei.com >
2015-01-16 17:58:26 +08:00
Arnaud Porterie
92d5eafe03
Test pulling image with aliases
...
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com >
2015-01-15 14:05:06 -08:00
Arnaud Porterie
dbec2317e5
Add some push test coverage
...
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com >
2015-01-15 14:05:06 -08:00
Alexander Morozov
f138f7bd50
Tests for push to registry v2
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com >
2015-01-15 14:05:06 -08:00
Alexander Morozov
2fc2862a73
RegistryV2 datastructure for tests
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com >
2015-01-15 14:05:06 -08:00
Doug Davis
88905793ad
Build CMD/ENTRYPOINT cache strings properly
...
Make sure that as we build the CMD/ENTRYPOINT cache strings that we don't
treat ["echo","hi"] and ["echo hi"] as the same thing due to the fact that
we're just doing a strcat on the array.
Closes #10097
Signed-off-by: Doug Davis <dug@us.ibm.com >
2015-01-15 12:49:30 -08:00
Jessie Frazelle
eaecf741f0
Merge pull request #10108 from tiborvass/carry-9989
...
[Carry] Fix a panic where RUN [] would be supplied
2015-01-14 17:12:59 -08:00
Michael Crosby
c126a2303f
Merge pull request #10106 from icecrime/win_integration_tests
...
Fix some Windows integration tests
2015-01-14 17:04:49 -08:00
Victor Vieux
27f69b0777
Merge pull request #10107 from jfrazelle/9328-fix-try-start-paused-container
...
Error should show when trying to start a paused container.
2015-01-14 17:02:23 -08:00
Erik Hollensbe
39343b8618
Fix a panic where RUN [] would be supplied.
...
Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org > (github: erikh)
2015-01-14 16:55:56 -08:00
Jessica Frazelle
02246d2d9f
Error should show when trying to start a paused container.
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com > (github: jfrazelle)
2015-01-14 16:49:08 -08:00
Arnaud Porterie
e1ef33449f
Take DOCKER_TEST_HOST into account
...
Tests no longer make the assumption that the daemon can be accessed
through unix:///var/run/docker.sock.
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com >
2015-01-14 16:14:27 -08:00
Alexander Morozov
95c0f07966
Merge pull request #10093 from crosbymichael/readonly-containers
...
Add --read-only for read only container rootfs
2015-01-14 15:56:51 -08:00
Michael Crosby
409407091a
Add --readonly for read only container rootfs
...
Add a --readonly flag to allow the container's root filesystem to be
mounted as readonly. This can be used in combination with volumes to
force a container's process to only write to locations that will be
persisted. This is useful in many cases where the admin controls where
they would like developers to write files and error on any other
locations.
Closes #7923
Closes #8752
Signed-off-by: Michael Crosby <crosbymichael@gmail.com >
2015-01-14 15:41:31 -08:00
Michael Crosby
3118ccc6bc
Merge pull request #10101 from LK4D4/fix_vet_errors
...
Fix vet errors
2015-01-14 15:18:20 -08:00
Jessica Frazelle
798215af24
Add build constraint.
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com > (github: jfrazelle)
2015-01-14 14:40:07 -08:00
Alexander Morozov
a75b02fe72
Fix format calls as suggested by vet
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com >
2015-01-14 14:12:03 -08:00
Victor Vieux
f67c6d313b
Merge pull request #10082 from jfrazelle/10081-fix-renaming
...
Renaming a container with an invalid name should fail
2015-01-14 13:12:36 -08:00
Jessica Frazelle
a92281637f
Renaming a container with an invalid name should fail
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com > (github: jfrazelle)
2015-01-14 12:54:23 -08:00
Michael Crosby
37b69408f8
Merge pull request #10056 from coolljt0725/add_link_accept_ID
...
Add --link accept container ID
2015-01-14 12:50:10 -08:00
Jessie Frazelle
95fea08f7a
Merge pull request #10072 from LK4D4/fix_mutable_net_files
...
Rewrite TestRunMutableNetworkFiles to avoid races
2015-01-14 11:48:46 -08:00
Jessie Frazelle
5136b11514
Merge pull request #10075 from LK4D4/test_for_maxcount
...
Test for restarting count
2015-01-14 09:17:02 -08:00
Lei Jitang
2292167b02
Add tests for --link
...
Signed-off-by: Lei Jitang <leijitang@huawei.com >
2015-01-14 15:25:58 +08:00
Alexander Morozov
79d30364c9
Test for restarting count
...
This test is for #10058
Signed-off-by: Alexander Morozov <lk4d4@docker.com >
2015-01-13 20:28:44 -08:00
Michael Crosby
47e3da848f
Merge pull request #10080 from crosbymichael/pid-ns
...
Add --pid flag for staying in the host's pid namespace
2015-01-13 17:00:18 -08:00
Michael Crosby
23b48fbe14
Merge pull request #10079 from tonistiigi/fix-attach-stdin
...
Fix attach stream closing issues
2015-01-13 16:40:42 -08:00
Michael Crosby
15e8f3fdd3
Add test for --pid=host
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com >
2015-01-13 16:39:08 -08:00
Tonis Tiigi
28cf8fddd4
Fix attach stream closing issues
...
Fixes : #9860
Fixes: detach and attach tty mode
We never actually need to close container `stdin` after `stdout/stderr` finishes. We only need to close the `stdin` goroutine. In some cases this also means closing `stdin` but that is already controlled by the goroutine itself.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2015-01-14 02:03:25 +02:00
Tonis Tiigi
f9876dade2
Fix filenames for unix only integration-cli tests
...
Test suffix comes after the platform/arch.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2015-01-14 00:31:25 +02:00
Alexander Morozov
492b18ac08
Rewrite TestRunMutableNetworkFiles to avoid races
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com >
2015-01-13 14:14:36 -08:00
Arnaud Porterie
cf455017e0
Support whitespaces in ADD and COPY continued
...
Add tests and documentation for this new feature.
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com >
2015-01-13 11:34:15 -08:00
Alexander Morozov
99a15ec8bd
Merge pull request #9973 from duglin/Issue9880
...
Make sure that ADD/COPY still populate the cache even if they don't use it
2015-01-13 11:17:34 -08:00
Jessie Frazelle
b9e42d66e7
Merge pull request #8570 from brahmaroutu/rename_container_3036
...
Rename a existing container
2015-01-13 10:37:29 -08:00
Arnaud Porterie
9a9339d9a2
Test case for error code when exiting on OOM
...
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com >
2015-01-12 23:16:28 -08:00
Srini Brahmaroutu
21a809d9ae
rename a existing container
...
Closes #3036
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com >
2015-01-13 03:27:17 +00:00
Vincent Batts
3ec6959240
Merge pull request #9985 from jfrazelle/fix-exited-filter-should-not-show-running
...
`docker ps --filter exited=status` should not show running containers
2015-01-12 15:09:22 -05:00
Vincent Batts
e90e754682
Merge pull request #9987 from jfrazelle/fix-filter-status-exited-not-require-all
...
`docker ps --filter status=exited should not require passing -a`
2015-01-12 15:05:58 -05:00
Tianon Gravi
d43f0b9fc5
Fix a few minor issues with building/running inside msysGit
...
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com >
2015-01-09 17:28:40 -07:00
Doug Davis
32cde64c04
Merge pull request #9980 from erikh/parser-with-no-command
...
Fix a parser error where an empty RUN statement would cause a panic
2015-01-08 19:34:06 -05:00
Jessica Frazelle
81f84023be
docker ps --filter exited=status should not show running containers
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com > (github: jfrazelle)
2015-01-08 16:23:54 -08:00
Jessica Frazelle
2639e073b1
docker ps --filter status=exited should not require passing -a
...
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com > (github: jfrazelle)
2015-01-08 15:37:07 -08:00
Tibor Vass
6870bde584
Merge pull request #8456 from lindenlab/cleanup-repository-info
...
Cleanup: Replace ResolveRepositoryName with RepositoryInfo{}
2015-01-08 17:19:03 -05:00
Alexander Morozov
92af1f0145
Merge pull request #9648 from estesp/9202-update-resolvconf
...
Update container resolv.conf when host network changes /etc/resolv.conf
2015-01-08 14:06:55 -08:00