Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Referred to the UUID
  • Loading branch information
j34ni authored Feb 2, 2021
1 parent 8019907 commit cdb6573
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,20 @@ We can now start the container in detached mode:
docker run -td escomp/cesm-2.2:latest
```
![alt text](img/Docker_run.png "Docker run")
Take note of the UUID long identifier which starts with *192df0aa73*: this string has been randomly generated by
the Docker daemon.

To start an interactive processe like a bash shell we use *docker exec ... bash*
(Notice that *-t* is to allocate a pseudo-tty and *-i* to keep STDIN open even if not attached)

To start an interactive processe like a bash shell we use *docker exec ... bash* with the first letters of the UUID
(here *-t* is to allocate a pseudo-tty and *-i* to keep STDIN open even if not attached):
```
docker exec -it 192 bash
```
![alt text](img/Docker_exec.png "Docker exec")
The promp has now changed to **[[email protected] ~]$** to confirm that we are in the container.

We can now, for example, check the version of the operating system inside the container (Centos-8 in this case,
whereas the shell was originally Debian):
We can now, for example, check the version of the operating system inside the container (it is Centos-8 in this case,
whereas that was originally Debian in the Google Cloud Shell):
```
cat /etc/os-release
```
Expand Down

0 comments on commit cdb6573

Please sign in to comment.