m. david / j. gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. jorge gomes m. david...
TRANSCRIPT
![Page 1: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/1.jpg)
Jorge GomesM. David / J. Gomes 1
![Page 2: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/2.jpg)
Jorge GomesM. David / J. Gomes
❖➢➢
❖➢➢
❖➢➢
❖➢➢
2
![Page 3: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/3.jpg)
Jorge GomesM. David / J. Gomes
❖➢➢
❖➢➢
❖➢➢
❖➢➢ We started to look at it i
n 2013
3
![Page 4: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/4.jpg)
Jorge GomesM. David / J. Gomes 4
![Page 5: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/5.jpg)
Jorge GomesM. David / J. Gomes 5
![Page 6: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/6.jpg)
Jorge GomesM. David / J. Gomes 6
![Page 7: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/7.jpg)
Jorge GomesM. David / J. Gomes
$ curl https://raw.githubusercontent.com/indigo-dc/udocker/master/udocker.py > udocker
$ chmod u+rx udocker $ ./udocker install
or devel
7
![Page 8: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/8.jpg)
Jorge GomesM. David / J. Gomes
$ udocker pull ubuntu:14.04
Downloading layer: sha256:bae382666908fd87a3a3646d7eb7176fa42226027d3256cac38ee0b79bdb0491Downloading layer: sha256:f1ddd5e846a849fff877e4d61dc1002ca5d51de8521cced522e9503312b4c4e7Downloading layer: sha256:90d12f864ab9d4cfe6475fc7ba508327c26d3d624344d6584a1fd860c3f0fefaDownloading layer: sha256:a57ea72e31769e58f0c36db12d25683eba8fa14aaab0518729f28b3766b01112Downloading layer: sha256:783a14252520746e3f7fee937b5f14ac1a84ef248ea0b1343d8b58b96df3fa9fDownloading layer: sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
8
![Page 9: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/9.jpg)
Jorge GomesM. David / J. Gomes
$ udocker create --name=ub14 ubuntu:14.04
9fe2f9e7-ce37-3be5-b12d-829a3236d2a6
container-id
container name is an alias to container ID
9
![Page 10: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/10.jpg)
Jorge GomesM. David / J. Gomes
$ udocker run ub14
****************************************************************************** * * * STARTING 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6 * * * ****************************************************************************** executing: bashroot@nbjorge:/# cat /etc/lsb-release DISTRIB_ID=UbuntuDISTRIB_RELEASE=14.04DISTRIB_CODENAME=trustyDISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"root@nbjorge:/# apt-get install firefox root emulation
10
![Page 11: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/11.jpg)
Jorge GomesM. David / J. Gomes
$ udocker run --user=jorge -v /home/jorge \-e HOME=/home/jorge --workdir=/home/jorge ub14
Warning: non-existing user will be created ****************************************************************************** * * * STARTING 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6 * * * ****************************************************************************** executing: bashjorge@nbjorge:~$ iduid=1000(jorge) gid=1000(jorge) groups=1000(jorge),10(uucp)jorge@nbjorge:~$ pwd/home/jorge
11
![Page 12: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/12.jpg)
Jorge GomesM. David / J. Gomes
$ udocker run --user=jorge --bindhome \--hostauth ub14 /bin/bash <<EOF
id; pwdEOF
****************************************************************************** * * * STARTING 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6 * * * ****************************************************************************** executing: bashuid=1000(jorge) gid=1000(jorge) groups=1000(jorge),10(uucp)/home/jorge
12
![Page 13: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/13.jpg)
Jorge GomesM. David / J. Gomes 13
![Page 14: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/14.jpg)
Jorge GomesM. David / J. Gomes 14
![Page 15: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/15.jpg)
Jorge GomesM. David / J. Gomes 15
![Page 16: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/16.jpg)
Jorge GomesM. David / J. Gomes 16
![Page 17: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/17.jpg)
Jorge GomesM. David / J. Gomes 17
![Page 18: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/18.jpg)
Jorge GomesM. David / J. Gomes
chroot to this directory becomes
the new root for container processes
$HOME/.udocker
18
![Page 19: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/19.jpg)
Jorge GomesM. David / J. Gomes
The P2 mode uses only PTRACE
19
![Page 20: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/20.jpg)
Jorge GomesM. David / J. Gomes 20
![Page 21: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/21.jpg)
Jorge GomesM. David / J. Gomes
The P2 mode uses only PTRACE
21
![Page 22: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/22.jpg)
Jorge GomesM. David / J. Gomes 22
![Page 23: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/23.jpg)
Jorge GomesM. David / J. Gomes 23
![Page 24: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/24.jpg)
Jorge GomesM. David / J. Gomes 24
![Page 25: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/25.jpg)
Jorge GomesM. David / J. Gomes 25
![Page 26: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/26.jpg)
Jorge GomesM. David / J. Gomes 26
![Page 27: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/27.jpg)
Jorge GomesM. David / J. Gomes 27
![Page 28: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/28.jpg)
Jorge GomesM. David / J. Gomes 28
![Page 29: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/29.jpg)
Jorge GomesM. David / J. Gomes 29
![Page 30: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/30.jpg)
Jorge GomesM. David / J. Gomes 30
![Page 31: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/31.jpg)
Jorge GomesM. David / J. Gomes
setup --execmode=Fn --force
31
![Page 32: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/32.jpg)
Jorge GomesM. David / J. Gomes 32
![Page 33: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/33.jpg)
Jorge GomesM. David / J. Gomes 33
![Page 34: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/34.jpg)
Jorge GomesM. David / J. Gomes 34
![Page 35: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/35.jpg)
Jorge GomesM. David / J. Gomes 35
![Page 36: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/36.jpg)
Jorge GomesM. David / J. Gomes
36
![Page 37: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/37.jpg)
Jorge GomesM. David / J. Gomes
export MASTERDIR=/gpfs/csic_users/userabc/mastercodeexport UDOCKER_DIR=$MASTERDIR/.udocker
udocker.py run --hostauth \-v /home/csic/cdi/ica/mcpp-master \
-v /home/csic/cdi/ica \ -user=user001 \
-w /home/csic/cdi/ica/mcpp-master mastercode \ /bin/bash -c "pwd; ./udocker-mastercode.sh"
37
![Page 38: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/38.jpg)
Jorge GomesM. David / J. Gomes 38
![Page 39: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/39.jpg)
Jorge GomesM. David / J. Gomes
■wget curl git clone
rpm deb
39
![Page 41: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/41.jpg)
Jorge GomesM. David / J. Gomes
■
41
![Page 42: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/42.jpg)
Jorge GomesM. David / J. Gomes 42
![Page 43: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/43.jpg)
Jorge GomesM. David / J. Gomes 43
Backup
![Page 44: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/44.jpg)
Jorge GomesM. David / J. Gomes
$ curl https://raw.githubusercontent.com/indigo-dc/udocker/master/udocker.py > udocker
$ chmod u+rx udocker $ ./udocker install
$ git clone -b master https://github.com/indigo-dc/udocker.git
$ cd udocker$ chmod u+rx udocker $ ./udocker install
or devel
44
![Page 45: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/45.jpg)
Jorge GomesM. David / J. Gomes
$ udocker search ubuntu
NAME OFFICIAL DESCRIPTIONubuntu [OK] Ubuntu is a Debian-based Linux operating system based on freeubuntu-debootstrap [OK] debootstrap --variant=minbase --components=main,universe ubuntu-upstart[OK] Upstart is an event-based replacement for the /sbin/init daemonrastasheep/ubuntu-sshd ---- Dockerized SSH service, built on top of official Ubuntu images.
45
![Page 46: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/46.jpg)
Jorge GomesM. David / J. Gomes
$ udocker ps
CONTAINER ID P M NAMES IMAGE9fe2f9e7-ce37-3be5-b12d-829a3236d2a6 . W ['ub14'] ubuntu:14.045c7bd29b-7ab3-3d73-95f9-4438443aa6d6 . W ['myoffice'] msoffice:lastest676eb77d-335e-3e9a-bf62-54ad08330b99 . W ['fedora_25'] fedora:25c64afe05-adfa-39de-bf15-dcd45f284249 . W ['debianold'] debian:oldstable7e76a4d7-d27e-3f09-a836-abb4ded0df34 . W ['ubuntu16', 'S'] ubuntu:16.109d12f52d-f0eb-34ae-9f0e-412b1f8f2639 . W ['f25'] fedora:25
container-id protected write alias/name image
46
![Page 47: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/47.jpg)
Jorge GomesM. David / J. Gomes
$ udocker clone --name=yy ub14
9fe2f9e7-ce37-3be5-b12d-829a3236d2a6
cloned container-id
47
![Page 48: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/48.jpg)
Jorge GomesM. David / J. Gomes
$ udocker rm ub14$ udocker rm 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6
$ udocker rmi ubuntu:14.04
remove container by alias or id
remove image
48
![Page 49: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/49.jpg)
Jorge GomesM. David / J. Gomes
$ udocker export -o ub14.tar ub14
$ udocker import ub14.tar myub14:latest
new image nameimport from tarball
export to tarball
••
49
![Page 50: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/50.jpg)
Jorge GomesM. David / J. Gomes
$ udocker export -o ub14.tar ub14
$ udocker import --tocontainer --name=xx ub14.tar
new container aliasimport from tarball to container
export to tarball
••
50
![Page 51: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/51.jpg)
Jorge GomesM. David / J. Gomes
$ udocker export --clone -o ub14.tar ub14
$ udocker import --clone --name=xx ub14.tar
•••
import clone
export clone
51
![Page 52: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/52.jpg)
Jorge GomesM. David / J. Gomes
$ udocker export --clone ub14 | \ssh user@host \“udocker import --clone --name=xx - ; udocker run xx”
••
import clone
export clone
run
52
![Page 53: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/53.jpg)
Jorge GomesM. David / J. Gomes
$ docker save -o image.tar centos:centos6
$ udocker load -i image.tar
•••
load image with all layers and metadata
save image with all layers and metadata
53
![Page 54: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/54.jpg)
Jorge GomesM. David / J. Gomes
docker save centos:centos6 | udocker load
••
load image with all layers and metadata
save image with all layers and metadata
54
![Page 55: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/55.jpg)
Jorge GomesM. David / J. Gomes
$ udocker images
REPOSITORYmsoffice:lastest .iscampos/openqcd:latest .fedora:25 .docker.io/susymastercode/mastercode:latest .ubuntu:14.04 .ubuntu:16.10 .ubuntu:latest .
55
![Page 56: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/56.jpg)
Jorge GomesM. David / J. Gomes
$ udocker ps
CONTAINER ID P M NAMES IMAGE9fe2f9e7-ce37-3be5-b12d-829a3236d2a6 . W ['ub14'] ubuntu:14.045c7bd29b-7ab3-3d73-95f9-4438443aa6d6 . W ['myoffice'] msoffice:lastest676eb77d-335e-3e9a-bf62-54ad08330b99 . W ['fedora_25'] fedora:25c64afe05-adfa-39de-bf15-dcd45f284249 . W ['debianold'] debian:oldstable7e76a4d7-d27e-3f09-a836-abb4ded0df34 . W ['ubuntu16', 'S'] ubuntu:16.109d12f52d-f0eb-34ae-9f0e-412b1f8f2639 . W ['f25'] fedora:25
container-id alias image
56
![Page 57: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/57.jpg)
Jorge GomesM. David / J. Gomes
$ udocker run --user=jorge --bindhome \--hostauth ub14
****************************************************************************** * * * STARTING 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6 * * * ****************************************************************************** executing: bashjorge@nbjorge:~$ iduid=1000(jorge) gid=1000(jorge) groups=1000(jorge),10(uucp)jorge@nbjorge:~$ pwd/home/jorgejorge@nbjorge:~$
57
![Page 58: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/58.jpg)
Jorge GomesM. David / J. Gomes
$ udocker run --user=jorge --bindhome \--hostauth ub14 /bin/bash -c “id; pwd”
****************************************************************************** * * * STARTING 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6 * * * ****************************************************************************** executing: bashuid=1000(jorge) gid=1000(jorge) groups=1000(jorge),10(uucp)/home/jorge
58
![Page 59: M. David / J. Gomes€¦ · ubuntu:14.04 . ubuntu:16.10 . ubuntu:latest . 55. Jorge Gomes M. David / J. Gomes $ udocker ps CONTAINER ID P M NAMES IMAGE 9fe2f9e7-ce37-3be5-b12d-829a3236d2a6](https://reader033.vdocuments.mx/reader033/viewer/2022042420/5f36f995ab8cbf6bf6388f11/html5/thumbnails/59.jpg)
Jorge GomesM. David / J. Gomes
$ udocker -q run ub14 /bin/cat /etc/lsb-release
DISTRIB_ID=UbuntuDISTRIB_RELEASE=14.04DISTRIB_CODENAME=trustyDISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
$ alias x=udocker -q run --user=user --bindhome \ --hostauth ub14$ x /bin/ls
59