Conversation
cb27f73 to
73a69ac
Compare
docs/man/docker-rename.1.md
Outdated
There was a problem hiding this comment.
lies! i never wrote this ;)
There was a problem hiding this comment.
Oops let me see, It may be just a cut and paste issue.
There was a problem hiding this comment.
Sorry, It is a cut and paste errors(now removed).
|
oh, yes, i would like this. Docs LGTM - now for an implementation question. what happens when you rename a container that has been linked to? does everything still hand together? (I presume so, but :)) |
1f39e4c to
62892b9
Compare
|
About the links, they work after rename, I tested them manually and also have integration tests that I can add, please let me know. I see the link is actually added to hosts file using IP address and container name is not used. |
|
plus you need core review, @crosbymichael @tiborvass ? |
docker/flags.go
Outdated
There was a problem hiding this comment.
Should be "an existing", here and below.
|
Docs LGTM from me once the grammar mistake is fixed. Ping @jamtur01 @ostezer. Still needs core review. Ping @crosbymichael @tiborvass Many thanks for the contribution. |
|
@brahmaroutu Thanks for your contribution. I'd like to note though that this is not a proposal (hence my editing of the title). A proposal is either in a form of an issue explaining what are the changes needed and why, OR a PR to the documentation explaining what would change if it were implemented (see #8859 as an example). Design needs to be reviewed with @shykes. Sorry if it's taking longer than expected! I'll make sure we review this in the next design review session. |
62892b9 to
e0e9507
Compare
|
@fredlf Sorry, I made that minor change to docs. |
|
No problem, and thanks! |
50c38fb to
7712f98
Compare
7712f98 to
d06850a
Compare
|
Design review with @icecrime I approve |
|
#uxapproved |
There was a problem hiding this comment.
I don't think these are needed if you deleteAllContainers
There was a problem hiding this comment.
There is a major issue here, as error is returned without releasing the lock (same for the code path right above):
$ docker run --name test busybox true
$ docker rename test " "
Error response from daemon: Error when allocating new name: Invalid container name ( ), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed
FATA[0000] Error: failed to rename container named test
$ docker ps -a # Hangs (probably daemon in deadlock)
I think we should use defer container.Unlock() to play safe.
There was a problem hiding this comment.
added defer on Unlock. thanks for pointing it out.
|
Not LGTM: there is a blocking issue (see my comment). |
62ecf5c to
3820e9d
Compare
|
Please let me know if I change it to the first ever PUT on Docker server, makes sense, instead of POST? |
|
Can we get an API maintainer input on the method to use so we can move on with this cool PR? Ping @vieux @jfrazelle! |
|
I would use GET parameter: |
|
@vieux Can you also let me know if I should change it to PUT call? |
|
Sorry I meant a We don't have any PUT on the API, we use only POST, GET or DELETE to I would stay on the POST |
Closes moby#3036 Signed-off-by: Srini Brahmaroutu <[email protected]>
3820e9d to
21a809d
Compare
|
LGTM |
|
fwiw; since I'm the one coming up with (If the need ever rises to be more "strict", I think that would require a complete review of the whole API) |
|
LGTM |
|
No API bump ? |
|
@vieux making patch now |
|
@jfrazelle thank you. |
|
It's easier for us when there is doc, every week we can look and see if we need to add the new endpoints in swarm. |
|
@jfrazelle thanks, let me know if I can help. |
The "or rename" part was removed from the error-message, because renaming wasn't possible at the time. Now that moby#8570 is merged, renaming existing containers is possible. Signed-off-by: Sebastiaan van Stijn <[email protected]>
|
@borromeotlhs there are not many tests testing 409 and I did not add one. I can quickly add a test if you want but I need a issue to do so. |
Addresses #3036
Signed-off-by: Srini Brahmaroutu [email protected]