Skip to content

dockerd-rootless.sh: add typo guard#41960

Merged
thaJeztah merged 1 commit into
moby:masterfrom
AkihiroSuda:rootless-typo-guard
Feb 24, 2021
Merged

dockerd-rootless.sh: add typo guard#41960
thaJeztah merged 1 commit into
moby:masterfrom
AkihiroSuda:rootless-typo-guard

Conversation

@AkihiroSuda

Copy link
Copy Markdown
Member

- What I did

dockerd-rootless.sh install is a common typo of dockerd-rootless-setuptool.sh install.

Now dockerd-rootless.sh install shows human-readable error.

- How I did it

Added a human-readable error

- How to verify it

$ dockerd-rootless.sh  install -f
+ echo Did you mean 'dockerd-rootless-setuptool.sh install -f' ?
Did you mean 'dockerd-rootless-setuptool.sh install -f' ?
+ exit 1

- A picture of a cute animal (not mandatory but encouraged)
🐧

@AkihiroSuda AkihiroSuda added kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. process/cherry-pick area/rootless Rootless Mode labels Feb 2, 2021
@thaJeztah thaJeztah added this to the 21.xx milestone Feb 2, 2021
@thaJeztah

Copy link
Copy Markdown
Member

Should we combine the scripts, so that there's a single "entry-point" (script) both for installing and running ?

@AkihiroSuda

AkihiroSuda commented Feb 2, 2021

Copy link
Copy Markdown
Member Author

Should we combine the scripts, so that there's a single "entry-point" (script) both for installing and running ?

I feel it will increase complexity and decrease maintainability.

Also, it should be noted that dockerd can potentially have subcommands (as in containerd) and they may conflict with the subcommands of -setuptool.sh .

`dockerd-rootless.sh install` is a common typo of `dockerd-rootless-setuptool.sh install`.

Now `dockerd-rootless.sh install` shows human-readable error.

Signed-off-by: Akihiro Suda <[email protected]>

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah

Copy link
Copy Markdown
Member

@tianon ptal 🤗

@tianon tianon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/rootless Rootless Mode kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. process/cherry-picked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants