Env:
-
安裝與啟動
在安裝 Docker 前先更新一下 YUM Repository:
# yum -y update
更新 YUM Repository 後可以安裝 Docker 及其相關套件:
# yum -y install docker docker-registry
安裝好 Docker 後, 啟動 Docker 及設定 Docker 開機自動啟動:
# systemctl enable docker
# systemctl start docker
要檢查 Docker 是否正確啟動, 可用 status 選項:
# systemctl status docker.service
-
登入 Docker hub to push or commit images
# docker login
-
Show host IP
ip addr show docker0 | grep -Po 'inet \K[\d.]+'
-
Enable / Disable Hyper-V
-
Disable -> Docker'll work and VirtualBox'll fail.
bcdedit /set hypervisorlaunchtype off
-
Enable -> Docker'll fail and VirtualBox'll work.
bcdedit /set hypervisorlaunchtype auto
-
Ref: https://dotblogs.com.tw/d___s/2018/08/02/virtualboxruntimeerror
Build image:
-
Create a file with multiple lines content in Dockerfile
RUN echo $'[repo] \n\
name = YUM Repository \n\
baseurl = https://example.com/packages/ \n\
enabled = 1 \n\
gpgcheck = 0' > /etc/yum.repos.d/Repo.repoxyz
Build container:
-
Start and attach to container
docker start -ai {{container_id}}
#or start and docker exec
-
Build and expose port to container
-
docker run -d -p 8080:80 {image}
-
Build and go into container bash
docker run -t -i ubuntu:12.04 bash
-
Build, expose port and go into container bash
docker run -itd -p 8080:80 {image} bash
# -p host_port:container_port
About Image:
-
清除 <none> images
docker rmi $(docker images -f "dangling=true" -q)
-
更新 image
-
docker commit -m "Setup to Jupyter truly" -a "John" {containerId} {image}
-
Push to Repository
docker push {image}
-
Check the files permission in docker image
docker run –rm -ti –entrypoint sh {image} -c "ls -alF /usr/local/bin/"
About Container:
-
Remove dead container
-
Linux
sudo rm -rf /var/lib/docker/<storage_driver>/{CONTAINER ID}/
-
Windows
del D:\ProgramData\docker\containers\{CONTAINER ID}
del D:\ProgramData\docker\windowsfilter\{CONTAINER ID}
-
Check screen log output
docker logs -f <CONTAINER> --tail {lineNumber}
-
List all the containers
docker ps -aq
-
Stop all running containers
docker stop $(docker ps -aq)
-
Remove all containers
docker rm $(docker ps -aq)
-
Remove all images
docker rmi $(docker images -q)
-
Copy file from host to container
docker cp foo.txt mycontainer:/foo.txt
from container to host
docker cp mycontainer:/foo.txt foo.txt
-
進入 Running Container bash
docker exec -i -t <CONTAINER_ID> bash
docker exec -i -t <CONTAINER_ID> sh
-
進入 Stopped(Exited) container bash
docker images # Find the {imageId} of exited container
docker run -it --entrypoint=sh {imageId}
# not verify?
docker start -ai {CONTAINER_ID} bash
-
修改初始 command 並 start new container
docker run -ti –entrypoint=sh <IMAGE_NAME>
Rate A Drug
Viagra Dopage cialis for sale
Para Que Sirve El Viagra Yahoo
zithromax allergies
plaquenil and weight gain
Cyproheptadine
cheap cialis online
Brand Name Viagra In Usa
purchase zithromax for chlamydia
Wellbutrin Xl 300 Mg Buy como comprar kamagra Amoxicillin Oral Suspension For Vets
diolispowl Antibacterial Resistance Amoxil http://alevitrasp.com WepAdjup cialis 40 ans
The first group personality test was the Army Alpha test which was used in World War I as a way of filtering potential recruits. Jvlokd Prednisone foros cialis viagra Ypeofc
ivermectin 1 cream stromectol 3 mg tablets price
is sildenafil sold over the counter how to use sildenafil 20 mg for ed
ivermectin new zealand stromectol price uk
stromectol prices stromectol tab 3mg
tadalafil temperature tadalafil drug
rasa research tadalafil reviews online pharmacy tadalafil
ivermectin 3mg tablet stromectol otc
ivermectin over the counter ivermectin oral 0 8
purchase stromectol ivermectin cost canada
ivermectin 1% cream generic ivermectin otc
ivermectin 9 mg stromectol for humans
stromectol australia stromectol for head lice
ivermectin uk ivermectin 4000
ivermectin cost australia ivermectin 3mg tablets price
stromectol online pharmacy stromectol pill
stromectol liquid ivermectin 1 cream
ivermectin cream cost ivermectin buy uk
buy ivermectin for humans uk stromectol canada
generic viagra reviews cheap viagra 100mg
ivermectin pills human stromectol tablets for humans
how many 5mg cialis can i take at once cialis free trial
does cialis make you harder what is the generic name for cialis
cialis without a prescription cheapest cialis
sildenafil premature ejaculation best price sildenafil
combitic global tadalafil tadalafil wiki
top 10 tadalafil websites mylan tadalafil
sildenafil generic dosage sildenafil 20 mg not working
mexican pharmacy what to buy viagra online canadian pharmacy
where can i get cialis overnite cheap cialis for sale
online pharmacy prescription Femara
online pharmacy store in kolkata Danazol
animal rx pharmacy Kamagra Effervescent
canada rx canadian pharmacy mebendazole
(tadalafil) tadalafil rx
ivermectin 1% cream how does ivermectin work in the body
scabies ivermectin dosage ivermectin cancer
female viagra for sale uk generic viagra free shipping
cialis side effects buy cialis withiut a prescription
levitra 5mg levitra not working
cialis daily vs regular cialis cialis and alcohol
generic cialis online pharmacy tadalafil cialis bestprice
Betapace free live pharmacy tech ce online
average cost of generic viagra viagra 50
bachelor of pharmacy online online pharmacy tech program
buying drugs canada reputable canadian online pharmacy
viagra from canada pharmacy canadian pharmacy for viagra
legitscript approved canadian pharmacies rx pharmacy coupon
rx express pharmacy panama city fl Suprax
walgreens store hours pharmacy kroger pharmacy store locator
generic provigil 200mg provigil 200mg cheap modafinil 100mg usa
best online pharmacy without prescriptions online drugs canada
buy modafinil 200mg brand provigil 100mg
erythromycin brand
provigil brand order generic modafinil 200mg buy modafinil 100mg without prescription
provigil 100mg ca modafinil online order
modafinil online buy provigil 100mg brand
order provigil 100mg online order modafinil 200mg pills
compare prescription drug prices
prescription costs
top canadian pharmacies
erythromycin medication
buycialis tadalafil 20mg
stromectol drug buy ivermectin online
https://stromectolgf.com/# stromectol ivermectin
erythromycin and clindamycin
ivermectin for humans ivermectin gel
erythromycin cream for acne azithromycin and erythromycin
canadian pharmacy online no prescription
carprofen without vet prescription online prescription for ed meds
https://drwithoutdoctorprescription.com/# prescription drugs online
prescription drugs without doctor approval buy prescription drugs online legally
anti fungal pills without prescription prescription drugs without prior prescription
types of inhalers proventil inhaler for sale
erythromycin ophthalmic ointment side effects low dose erythromycin
canadian drug pharmacy canadian drugs
https://drwithoutdoctorprescription.online/# prescription drugs without doctor approval
without doctor prescription canadian drug prices
ventolin 100 mcg ventolin inhaler
prescription drugs canada ed drugs
viagra tablet sizes viagra blue pills where can i buy cialis or viagra on line
canadian online drugstore canadian drugs online
cvs prescription prices without insurance tadalafil without a doctor’s prescription
https://drwithoutdoctorprescription.online/# best ed pills non prescription
viagra coupons 75% off women viagra pills
generic hydroxychloroquine hydroxychloroquine 200 mg price
sildenafil 20 mg price of viagra
order viagra online viagra over the counter
generic viagra uk
generic viagra online
sildenafil 20 mg viagra from india
viagra online buy
viagra from india viagra
where to buy viagra п»їviagra pills
sildenafil 20 mg price of viagra
cheap viagra online viagra without a doctor prescription
where to buy viagra online viagra shop
prednisone 2.5 mg daily prednisone 10mg buy online
prednisone pills cost prednisone prescription for sale
https://www.hydroxychloroquinex.com/ hydroxychloroquine sulfate
discount prescription drugs http://medsmir.com/ european pharmacies shipping to usa
https://doxycyclineforsale.life/# buying doxycycline online
doxycycline 20 mg capsules drug doxycycline 100mg
order zithromax over the counter zithromax 250 mg pill
https://buylipitor.store/# cheap lipitor 20 mg
tadalafil price tadalafil tablets 20 mg india
https://buymetformin.best/# metformin for sale canadian pharmacy
metformin 300 mg daily metformin 102
lasix online lasix medication
lipitor 10 mg cheapest generic lipitor
https://erectionpills.best/# medications for ed
https://withoutprescription.store/# canadian pharmacy online
buy prescription drugs online without cat antibiotics without pet prescription
lasix price at walmart furosemide
https://gabapentin.icu/# neurontin oral
п»їcipro generic buy ciprofloxacin
pet antibiotics without vet prescription п»їed drugs online from canada
https://cipro.best/# buy cipro online canada
https://furosemide.beauty furosemide tablets for sale
walmart pharmacy sildenafil price sildenafil 20 mg reviews
cipro pharmacy ciprofloxacin 500 mg tablet price
https://gabapentin.icu/# price of neurontin
https://cipro.best/# cipro pharmacy
canadian medications prescription drugs canada buy online
invokana 100 mg generic canagliflozin cost
https://withoutprescription.store/# cvs prescription prices without insurance
prescription drugs without doctor approval canadian online drugstore
canada ed drugs canadian pharmacy
https://cipro.best/# ciprofloxacin 500mg buy online
https://cipro.best/# buy ciprofloxacin over the counter
https://sildenafiluis.com 50 mg viagra price walmart
best erection pills ed remedies
stromectol stromectol 3mg tablets
furosemide 40 mg https://furosemide.sbs
https://stromectol.life/# ivermectin cream cost
https://drugsonline.store/# male dysfunction treatment
Thanks a lot, Loads of info.