Untitled

(base) smmc-dl@smmcdl:~$ sudo docker ps -a
CONTAINER ID   IMAGE                                         COMMAND                  CREATED          STATUS                       PORTS                     NAMES
111111111111   ubuntu:20.04                                  "bash"                   20 minutes ago   Exited (0) 20 minutes ago                              flamboyant_tesla
111111111114   nvidia/cuda:10.0-cudnn7-runtime-ubuntu16.04   "/bin/bash"              13 months ago    Exited (1) 10 minutes ago                              base_container
111111111116   google/cadvisor:latest                        "/usr/bin/cadvisor -…"   13 months ago    Exited (255) 13 months ago   0.0.0.0:55553->8080/tcp   cadvisor
111111111117   nvidia/cuda:10.2-cudnn7-runtime-ubuntu16.04   "/bin/bash"              13 months ago    Exited (0) 4 months ago                                basic_container
111111111115   hello-world                                   "/hello"                 14 months ago    Exited (0) 14 months ago                               beautiful_mendeleev
(base) smmc-dl@smmcdl:~$
(base) smmc-dl@smmcdl:~$ sudo docker start basic_container
basic_container
(base) smmc-dl@smmcdl:~$
(base) smmc-dl@smmcdl:~$ docker ps
CONTAINER ID   IMAGE                                         COMMAND       CREATED         STATUS         PORTS                                            NAMES
111111111117   nvidia/cuda:10.2-cudnn7-runtime-ubuntu16.04   "/bin/bash"   13 months ago   Up 2 minutes   0.0.0.0:55555->22/tcp, 0.0.0.0:55554->8888/tcp   basic_container
(base) smmc-dl@smmcdl:~$
(base) smmc-dl@smmcdl:~$ docker commit basic_container glory
sha256:5~~~~~~~~~~~~49
(base) smmc-dl@smmcdl:~$
(base) smmc-dl@smmcdl:~$ docker images
REPOSITORY        TAG                               IMAGE ID       CREATED         SIZE
glory             latest                            511111111111   5 minutes ago   8.64GB
ubuntu            20.04                             b11111111111   4 weeks ago     72.8MB
nvidia/cuda       10.0-cudnn7-runtime-ubuntu16.04   f11111111111   14 months ago   1.33GB
nvidia/cuda       10.2-base                         111111111111   15 months ago   108MB
nvidia/cuda       10.2-cudnn7-runtime-ubuntu16.04   b11111111111   15 months ago   1.81GB
hello-world       latest                            b11111111111   22 months ago   13.3kB
google/cadvisor   latest                            e11111111111   3 years ago     69.6MB
(base) smmc-dl@smmcdl:~$
(base) smmc-dl@smmcdl:~$ docker run -it --name glory_container glory bash
root@ea018e05387e:/#
root@ea018e05387e:/# jupyter notebook --ip=0.0.0.0 --allow-root --no-browser
[I 03:58:13.523 NotebookApp] Serving notebooks from local directory: /
[I 03:58:13.523 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 03:58:13.523 NotebookApp] <http://ea0187e:8888/?token=bc5222>
[I 03:58:13.523 NotebookApp]  or <http://127.0.0.1:8888/?token=bc521152>
[I 03:58:13.523 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 03:58:13.526 NotebookApp] 
    
    To access the notebook, open this file in a browser:
        file:///root/.local/share/jupyter/runtime/nbserver-21-open.html
    Or copy and paste one of these URLs:
        <http://ea2387e:8888/?token=bc5fec1>
     or <http://127.0.0.1:8888/?token=bc52>