Bug 1811514
Summary: | [container-tools:rhel8] Failed to start existing container | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Alex Jia <ajia> | |
Component: | toolbox | Assignee: | Jindrich Novy <jnovy> | |
Status: | CLOSED ERRATA | QA Contact: | Martin Jenner <mjenner> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 8.2 | CC: | dornelas, jerzhang, lmiksik, miabbott, pthomas | |
Target Milestone: | rc | |||
Target Release: | 8.2 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | toolbox-0.0.7-1.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1815460 1816287 (view as bug list) | Environment: | ||
Last Closed: | 2020-04-28 15:53:37 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1734579, 1815460, 1816287 |
Description
Alex Jia
2020-03-09 06:03:41 UTC
The workaround for this BZ is to use `podman rm` to remove the existing container. ``` $ toolbox Trying to pull registry.redhat.io/rhel8/support-tools... unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication Error: error pulling image "registry.redhat.io/rhel8/support-tools": unable to pull registry.redhat.io/rhel8/support-tools: unable to pull image: Error initializing source docker://registry.redhat.io/rhel8/support-tools:latest: unable to retrieve auth token: invalid username/passworn Would you like to manually authenticate to registry: 'registry.redhat.io' and try again? [y/N] y Username: miabbott Password: Login Succeeded! Trying to pull registry.redhat.io/rhel8/support-tools... Getting image source signatures Copying blob eae5d284042d done Copying blob 0a4a43613721 done Copying blob ff6f434a470a done Copying config 53d1e01dae done Writing manifest to image destination Storing signatures 53d1e01dae0c44c45f36e72d2d1f0fa91069c147bbd9d2971335ecf2ca93b446 Spawning a container 'toolbox-core' with image 'registry.redhat.io/rhel8/support-tools' Detected RUN label in the container image. Using that as the default... command: podman run -it --name toolbox-core --privileged --ipc=host --net=host --pid=host -e HOST=/host -e NAME=toolbox-core -e IMAGE=registry.redhat.io/rhel8/support-tools:latest -v /run:/run -v /var/log:/var/log -v /etc/machine-id:/etc/machine-id -v /etc/localtime:/etc/localtime -t [root@ibm-p8-kvm-03-guest-02 /]# exit exit $ sudo podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 61b2039091a8 registry.redhat.io/rhel8/support-tools:latest /usr/bin/bash 46 seconds ago Exited (0) 6 seconds ago toolbox-core $ sudo podman rm toolbox-core 61b2039091a8e3c9de231b8e582b341169529a5eef54da2cb62228af8bf7e064 $ toolbox Spawning a container 'toolbox-core' with image 'registry.redhat.io/rhel8/support-tools' Detected RUN label in the container image. Using that as the default... command: podman run -it --name toolbox-core --privileged --ipc=host --net=host --pid=host -e HOST=/host -e NAME=toolbox-core -e IMAGE=registry.redhat.io/rhel8/support-tools:latest -v /run:/run -v /var/log:/var/log -v /etc/machine-id:/etc/machine-id -v /etc/localtime:/etc/localtime -t [root@ibm-p8-kvm-03-guest-02 /]# exit exit $ ``` Verified in toolbox-0.0.7-1.module+el8.2.0+6096+9c3f08f3.noarch. [root@hpe-dl380pgen8-02-vm-14 ~]# podman ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a7e55f683190 registry.redhat.io/rhel8/support-tools:latest /usr/bin/bash 27 seconds ago Exited (0) 5 seconds ago toolbox-root [root@hpe-dl380pgen8-02-vm-14 ~]# toolbox Container 'toolbox-root' already exists. Trying to start... (To remove the container and start with a fresh toolbox, run: sudo podman rm 'toolbox-root') toolbox-root Container started successfully. To exit, type 'exit'. sh-4.4# ls bin dev home lib lost+found mnt proc run srv tmp var boot etc host lib64 media opt root sbin sys usr sh-4.4# pwd / sh-4.4# exit exit [root@hpe-dl380pgen8-02-vm-14 ~]# echo $? 0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1650 |