1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-07 06:44:52 +01:00

22 Commits

Author SHA1 Message Date
Giuseppe Scrivano
c8f83d99ed install: hide --system and --user if not supported
Check respectively that runc and bwrap-oci are available before showing
'install --system' and 'install --user'.

bwrap-oci is still not packaged and may not be available immediately on
RHEL.  The check for runc is added for completeness.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #567
Approved by: rhatdan
2016-08-29 18:46:29 +00:00
yuqi-zhang
42c6094e3f syscontainers: add --rootfs to atomic install
Add --rootfs=ROOTFS to atomic install, which allows users to specify
an existing exploded container or existing rootfs location as ROOTFS.
The existing rootfs will be used as a read-only rootfs for the new
container to be installed, and therefore the new container would
only contain configuration files. (Note: currently all system
containers must have a read-only rootfs by default).

A use case for this would be using existing container's rootfs
through NFS, etc to serve as the rootfs for many containers running
the same image. This avoids duplicate storage of having a container
on each machine in a cluster.

A user can update only the remote container's config file parameters
with 'atomic update', and uninstalling a remote container does not
affect the rootfs specified in ROOTFS.

Closes: #527
Approved by: giuseppe
2016-08-12 22:07:36 +00:00
Giuseppe Scrivano
3bb5dbfe5a docs: document atomic install --user
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #524
Approved by: rhatdan
2016-08-09 17:00:29 +00:00
Giuseppe Scrivano
627b541a03 docs: add system containers info to "atomic install"
and don't split long lines

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #480
Approved by: rhatdan
2016-07-15 13:44:51 +00:00
Giuseppe Scrivano
39245230c5 atomic: hide system containers options if OSTree is not present
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #398
Approved by: rhatdan
2016-05-31 19:56:32 +00:00
Giuseppe Scrivano
3d7691fb97 docs: add man pages for system containers new options
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2016-04-18 20:27:32 +02:00
Dan Walsh
2d66fdcc13 Remove opt documentation, but continue support
opt1, opt2 and opt3 can be specified as environment variables.

OPT1=--debug atomic install foobar

No reason to have options.
2015-09-24 12:10:06 -04:00
Dan Walsh
78589573a9 Remove automatic setting of CONFDIR, DATADIR and LOGDIR
Users can do this themselves by using the ${NAME} field.

Hard coding behaviour of these three variables was a mistake, and this
is a lot more flexible.  I could add back the variables and don't document them
if people think someone has used them
2015-09-14 09:17:01 -04:00
Dan Walsh
4f45fc0467 Add missing options to man pages 2015-08-31 09:41:10 -04:00
Sally O'Malley
904588f97e atomic man fixes
Signed-off-by: Sally O'Malley <somalley@redhat.com>
2015-08-26 11:44:10 -04:00
Avesh Agarwal
b4da5b97ae This removes --name \${NAME} from atomic install and uninstall man pages
because it is error prone to use it this way. Using the same NAME in the
environment variable -e NAME=\${NAME} and in container name (--name) for
install and uninstall seems incorrect because both of them serve
different purposes. Also if NAME is being used to create a container in
the install script, which happens most of the time, it leads to failure
because the same NAME is used for the ephemeral container to process
LABEL INSTALL and due to that, the actual container can not be created
and it gives following error:
"Error response from daemon: Conflict. The name "etcd1" is
already in use by container b50ea8bf1d40."

Anyway assigning names (using -name NAME) to ephemeral containers during
install and uninstall does not make much sense in my point of view.
2015-08-19 16:11:11 -04:00
Sally O'Malley
c13019c43e WIP: Add --display to run|install
Use --display to view run or install commands without
executing the commands.  This is useful when working with custom images
with LABEL methods defined.

Signed-off-by: Sally O'Malley <somalley@redhat.com>
2015-07-27 16:51:23 -04:00
Dan Walsh
efb6af78cd Add missing docs updates for OPT1,2,3 2015-07-22 14:38:51 -04:00
Subin M
473ab65eb1 add opt1 opt2 opt3 2015-07-02 16:57:50 +05:30
Brian (bex) Exelbierd
53d3dc83c6 Add SUDO_UID and SUDO_GID variable substitions
These substions are useful with docker -u SUDO_UID:SUDO_GID ...
for userspace tools such as format translators
2015-06-27 17:42:48 +02:00
Solly Ross
d8d695381e Add IMAGE and NAME as environment variables
This commit adds `IMAGE` and `NAME` as environment variables
passed to install, uninstall, stop, and run (similarly to
`CONFDIR`, `DATADIR`, and `LOGDIR`).  This allows users to write
`NAME=${NAME}` instead of `NAME=NAME`, and also enables `${NAME}`
and `${IMAGE}` to be used in arbitrary parts of the commands.
2015-06-17 14:23:16 -04:00
Dan Walsh
c94bd60de2 Pass additional arguments to the atomic install/uninstall line
This patch will allow a user to pass additional arguments to the command specified in the INSTALL/UNINSTALL lines
2015-05-27 09:22:06 -04:00
Avesh Agarwal
f856aec77e Fixing typos. 2015-03-31 16:32:13 -04:00
Dan Walsh
195d1f786b Cleanup spelling in man pages 2015-02-23 17:31:28 -05:00
Dan Walsh
fd4aee4763 Fix merge issues 2015-01-25 06:03:53 -05:00
Dan Walsh
10fc4c89db Move atomic host commands to 'host' subcommand 2015-01-23 05:10:14 -05:00
Dan Walsh
394732cdaa Rename atom to atomic 2015-01-22 17:37:51 -05:00