Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

'atomic run' problems when mixing interactive containers and one-off commands #1023

@miabbott

Description

@miabbott

This problem probably should have been addressed in #1019, but I didn't test down this path.

When the user does an atomic run of an image in interactive mode, subsequent uses of atomic run to run a one-off command will just execute that interactive container. In some cases, this is OK, but it runs into problems when you have the same image name on multiple registries or when the image has multiple tags.

# ./atomic run registry.fedoraproject.org/fedora:25
docker run -t -i --name fedora registry.fedoraproject.org/fedora:25 /usr/bin/bash
[root@932a9b4963be /]# grep PRETTY /etc/os-release
PRETTY_NAME="Fedora 25 (Twenty Five)"
[root@932a9b4963be /]# exit
exit
# ./atomic run registry.fedoraproject.org/fedora:25 date
fedora
Wed May 31 19:58:21 UTC 2017
# ./atomic run registry.fedoraproject.org/fedora:26 grep PRETTY /etc/os-release
PRETTY_NAME="Fedora 25 (Twenty Five)"
# ./atomic run registry.fedoraproject.org/fedora:26 date
Wed May 31 19:58:34 UTC 2017

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions