According to the Docker manual, the command for staring a container is docker start [container_name]. However, the name is not mentioned in the following commands.
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nvcr.io/nvidia/cuda 11.6.0-devel-ubuntu20.04 44b919ab35af 3 weeks ago 5.09GB
nvcr.io/nvidia/cuda latest 539690cdfcd6 15 months ago 4.77GB
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
How can I start with tag or image ID?
UPDATE:
There is a Dockerfile which contains
FROM nvcr.io/nvidia/cuda:11.6.0-devel-ubuntu20.04
RUN apt-get update
WORKDIR /opt
RUN apt-get update
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
build-essential \
git \
python \
python-pip
When I run docker build ., I see the steps for pulling the image and apt commands. But it terminates with this error about not finding python-pip.
...
Building dependency tree...
Reading state information...
Package python-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python3-pip
E: Package 'python-pip' has no installation candidate
The command '/bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates build-essential git python python-pip' returned a non-zero code: 100
The error is not a problem itself. I want to ssh to the container to see the folders inside /opt, but as docker ps shows, there is no container.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
docker ps -a) or do you want to create a container (docker run)?