
docker
文章平均质量分 83
lianghyan
喜欢旅游,不喜欢固定一层不变的生活
展开
-
一步一个坑的在docker里安装hadoop
>docker run -v /Users/Shared/dockerdir:/data --name hadoin -it -p 9870:9870 hado /bin/bash>cp /data/hadoop-3.3.0.tar.gz .>tar -zxvf hadoop-3.3.0.tar.gz>docker start hadoin>docker exec -it hadoin /bin/bash#edit the file etc/hadoop/..原创 2021-06-02 21:13:05 · 224 阅读 · 0 评论 -
create a docker image and run with port map
FROM ubuntu RUN mkdir opt/fsd RUN apt-get update RUN apt install vim --assume-yes ADD jdk-11.0.9_linux-x64_bin.tar.gz opt/fsd ENV JAVA_HOME=/opt/fsd/jdk-11.0.9 ENV PATH=$JAVA_HOME/bin:$PATH ENV CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_H原创 2020-12-29 11:44:29 · 121 阅读 · 0 评论 -
docker db2
https://hub.docker.com/r/ibmcom/db2docker run -itd --name mydb2 --privileged=true -p 50000:50000 -e LICENSE=accept -e DB2INST1_PASSWORD=testdb -e DBNAME=testdb -v /scan/db2docker:/database ibmcom/db2docker start mydb2docker exec -ti mydb2 bash -c "su原创 2020-06-05 15:43:30 · 151 阅读 · 0 评论 -
docker - tomcat
FROM ubuntu RUN mkdir opt/fsd RUN apt-get update RUN apt install vim --assume-yes ADD jdk-8u231-linux-x64.tar.gz opt/fsd ENV JAVA_HOME=/opt/fsd/jdk1.8.0_231 ENV PATH=$JAVA_HOME/bin:$...原创 2019-12-10 21:11:23 · 98 阅读 · 0 评论 -
docker 和 host之间 文件传递
1. image 生成container时 挂载文件目录到docker的目录, 如下:docker run -p 8080:8080 -p 8776:8776 -v C:\Temp:/data --name helloblue -it iblue /bin/bash2. host和container之间文件拷贝, container需要停止运行>docker cp [宿主机路...原创 2019-12-10 21:01:34 · 411 阅读 · 0 评论 -
MySQL docker - create database and initialize table
Dockerfile FROM mysql RUN apt-get update RUN apt install vim --assume-yes RUN mkdir opt/blue COPY blue.sql opt/blue COPY priv.sql opt/blue COPY setup.sh opt/blue CMD ["sh", ...原创 2019-12-10 20:32:14 · 355 阅读 · 0 评论 -
docker-Dockerfile 安装oracle java
FROM ubuntu RUN mkdir opt/fsd RUN apt-get update RUN apt install vim --assume-yes ADD jdk-8u231-linux-x64.tar.gz opt/fsd ENV JAVA_HOME=/opt/fsd/jdk1.8.0_231 ENV PATH=$JAVA_HOME/b...原创 2019-12-05 16:51:20 · 348 阅读 · 0 评论 -
docker cmd for myself
> docker images>docker run mysql -it mysql /bin/bash>docker run -it ubuntu /bin/bash>docker run --name mybun -it ubuntu /bin/bash>docker run --name mybun2 -v /lydoc:/fsd -it ub...原创 2019-12-04 22:59:01 · 130 阅读 · 0 评论 -
window 10: "docker build" requires exactly 1 argument.
在后面一定要加个 点 . ,标识当前路径原创 2019-11-09 20:30:34 · 196 阅读 · 0 评论 -
window 10 下, docker container 端口配置,实现端口映射
window10, 目录C:\ProgramData\Docker\containers\containerId, 修改后需要重新启动docker 服务弄个半个下午的血泪结果, 晕菜!原创 2019-11-09 18:55:38 · 4188 阅读 · 4 评论