ROS 工具

A useful command that can be used with RancherOS is ros which can be used to control and configure the system. ros requires you to be the root user, so with the rancher user, you will need to use sudo.

SUB COMMANDS

| Command | Description | |—————|———————————————————————————————–| |config, c | Configure Settings | |dev, d | dev spec |env, e | Run a command with RancherOS environment | |service, s | Command Line interface for services and compose. | |os | Operating System Upgrade/Downgrade | |tls | Setup TLS configuration | |install | Install RancherOS to Disk | |help, h | Shows a list of commands or help for one command |

RANCHEROS VERSION

If you want to check what version you are on, just use the -v option.

$ sudo ros -v ros version v0.4.0

HELP

To list available commands, run any ros command with -h or —help. This would work with any subcommand within ros.

  1. $ sudo ros -h
  2. NAME:
  3. ros - Control and configure RancherOS
  4. USAGE:
  5. ros [global options] command [command options] [arguments...]
  6. VERSION:
  7. v0.4.0
  8. AUTHOR(S):
  9. Rancher Labs, Inc.
  10. COMMANDS:
  11. config, c configure settings
  12. dev, d dev spec
  13. env, e env command
  14. service, s Coomand line interface for services and compose.
  15. os operating system upgrade/downgrade
  16. tls setup tls configuration
  17. install install RancherOS to disk
  18. help, h Shows a list of commands or help for one command
  19. GLOBAL OPTIONS:
  20. --help, -h show help
  21. --generate-bash-completion
  22. --version, -v print the version