File: zun.rst

package info (click to toggle)
python-zunclient 5.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,056 kB
  • sloc: python: 10,127; sh: 110; makefile: 25
file content (87 lines) | stat: -rw-r--r-- 1,743 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.. _manpage:

================
Zun CLI man page
================


SYNOPSIS
========

Zun operation use `zun` command, and also support use `openstack` command.

:program:`zun` [options] <command> [command-options]

:program:`openstack` appcontainer <command> [command-options]


DESCRIPTION
===========

The :program:`zun` command line utility interacts with OpenStack Containers
Service (Zun).

In order to use the CLI, you must provide your OpenStack username, password,
project (historically called tenant), and auth endpoint. You can use
configuration options `--os-username`, `--os-password`, `--os-tenant-name` or
`--os-tenant-id`, and `--os-auth-url` or set corresponding environment
variables::

    export OS_USERNAME=user
    export OS_PASSWORD=pass
    export OS_PROJECT_NAME=myproject
    export OS_AUTH_URL=http://auth.example.com:5000/v3
    export OS_USER_DOMAIN_ID=default
    export OS_PROJECT_DOMAIN_ID=default

OPTIONS
=======

To get a list of available commands and options run::

    zun help

To get usage and options of a command::

    zun help <command>

You can also use openstack command as follow.

To get a list of available commands run::

    openstack help appcontainer

To get usage and options of a command::

    openstack appcontainer <command> --help



EXAMPLES
========

List all the containers::

    zun list

Create new container::

    zun run --name container01 IMAGE01

Describe a specific container::

    zun show container01

You can also use openstack command as follow.

List all the containers::

    openstack appcontainer list

Create new container::

    openstack appcontainer run --name container01 IMAGE01

Describe a specific container::

    openstack appcontainer show container01