Skip to content

Commit

Permalink
Explained how to re-enter the same container
Browse files Browse the repository at this point in the history
  • Loading branch information
j34ni authored Jan 25, 2020
1 parent 1bede10 commit f7d79a1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,34 @@ docker run --shm-size 8G -i -v /opt/uio/inputdata:/home/cesm/inputdata -v /opt/u
Run Time : 4070.297 seconds 814.059 seconds/day
Final Time : 0.005 seconds
```
You can now exit the container.

### To return into the same container

Find the Container ID:
```
docker ps --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d40294d23839 nordicesmhub/noresm:latest "/bin/bash" 25 minutes ago Exited (0) 59 seconds ago objective_meitner
```

Then execute:
```
docker start d40294d23839
d40294d23839
```

You can check that the container is now up again:
```
docker ps --all
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d40294d23839 nordicesmhub/noresm:latest "/bin/bash" 25 minutes ago Up 2 seconds objective_meitner
```

and go back into it by typing:
```
docker exec -it d40294d23839 bash
cesm@d40294d23839:~$ ls
archive cases inputdata packages run_noresm work
```

0 comments on commit f7d79a1

Please sign in to comment.