forked from gina-alaska/emodis_ndvi_python-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes
More file actions
72 lines (38 loc) · 1.15 KB
/
notes
File metadata and controls
72 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#link for this repository:
https://github.com/gina-alaska/emodis_ndvi_python-docker
#run docker interactive
docker run -it local/emodis_ndvi /bin/bash
#check the ubuntu version
lsb_release -a
#change the branch
git checkout dockerfile
#take a look at remote branchs
git branch -r
#remove docker container
docker rm container_ID
#remove docker container
docker stop $(docker ps -a -q)
#delete docker iamge
docker rmi image_ID/image_name
#create a docker hub account
jiangatgina
DaxieJiyun181
#create a scrach image
tar cv --files-from /dev/null | docker import - scratch
#create a docker
#install python, pip, python-gdal in docker
apt-get update
apt-get install python python-pip python-gdal
#copy file between local host and container
docker cp foo.txt mycontainer:/foo.txt
docker cp mycontainer:/foo.txt foo.txt
#login as your locah host name
docker run -ti \
-v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro \
-u $( id -u $USER ):$( id -g $USER ) \
some-image:lastest bash
#create a image ubuntu and change the passwd
docker run -i -t --entrypoint /bin/bash ubuntu
#force delete a docker image
docker rmi -f 31b78ce2600f
apt-utils