1
0
mirror of https://github.com/projectatomic/atomic.git synced 2026-02-05 18:45:01 +01:00

22 Commits

Author SHA1 Message Date
Giuseppe Scrivano
e045e8baef syscontainers: --user uses runc by default
bwrap-oci can still be used with the --runtime option.

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

Closes: #1226
Approved by: rhatdan
2018-04-26 15:55:43 +00:00
Giuseppe Scrivano
df2c209c27 run: add option --runtime
it allows to select a different OCI runtime to use with atomic run.

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

Closes: #1196
Approved by: rhatdan
2018-02-23 15:15:05 +00:00
Giuseppe Scrivano
6eebb86402 atomic, run: implement --set option
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>

Closes: #1186
Approved by: baude
2018-02-19 16:03:47 +00:00
Martin Etmajer
2ecc4e1775 Add instructions on how to inject custom environment variables into a container.
Closes: #1053
Approved by: rhatdan
2017-07-25 18:58:37 +00:00
Brent Baude
2dfeae1356 Atomic/backends/_docker.py: Error prevention with atomic run
There were two primary cases where a secondary atomic run with a command
would trigger an exception.  The first was reported in
https://github.com/projectatomic/atomic/issues/1006. Basically it can
be summarized as:

```
atomic run registry.fedoraproject.org/fedora:25 date  # works fine
atomic run registry.fedoraproject.org/fedora:26 date  # tries to run in the existing f25 container
```

The second case is as simple as:

```
atomic run registry.fedoraproject.org/fedora:25 date  # works fine
atomic run registry.fedoraproject.org/fedora:25 date  # fails
```

This fails because atomic starts the stopped f25 container and then attempts a docker exec.  The
exec fails because the 'date' command is short-lived and the container exits prior to the exec
being run.

We now catch those exceptions and notify the user.  We added a `--replace` option to run where
atomic will now delete the container in question and re-run it from the correct image.

Closes: #1019
Approved by: baude
2017-05-31 19:20:25 +00:00
Brent Baude
02bd134f1c Add --storage to install|run
To have parity function with pull, we need to add --storage
to install and run.  This allows for overriding when atomic.type
is defined.  For example, if you pull an image that has
atomic.type=system but you really want to store it
on the docker backend.

Closes: #861
Approved by: baude
2017-02-04 17:05:24 +00:00
yuqi-zhang
3e55ad6621 Start/stop syscontainers with atomic run/stop
Wrap atomic run/stop with systemctl start/stop for system
containers. This way the user can directly use the atomic
CLI for the full container cycle. In addition, the equivalent
functionality already exists for docker containers, so it
makes sense to allow system containers to start/stop in a
similar fashion.

Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>

Closes: #651
Approved by: rhatdan
2016-09-21 20:56:13 +00:00
Jan Pazdziora
f97e97f172 Add support for LABEL RUN_OPTS_FILE and ${RUN_OPTS}
Closes: #541
Approved by: rhatdan
2016-08-19 13:02:26 +00:00
Brent Baude
c71664ef97 Atomic/run.py: Add security implications messages based on RUN label
Laymen users who are told to run a image may not understand
the docker run switches that have security implications.  We
now look for the following switches:

* --privileged
* --cap-add
* --security-opt label:disable
* --net=host
* --pid=host
* --ipc=host

and output an appropriate security message.

Also, moved def run() from Atomic/atomic.py to Atomic/run.py
to reduce the size and the number of definitions in
Atomic/atomic.py.
2016-01-18 09:29:37 -06: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
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
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
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