Docker Python Mysql

docker pull mysql:5.7

docker run -itd -p 8070:3306 -v /hadoop-data/work/sl/project/mysql/data:/var/lib/mysql -v /hadoop-data/work/sl/project/mysql/conf.d:/etc/mysql/conf.d --name=qa_mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7

mysql -h host_ip -P port …

more ...

Docker build

Date Tags Docker

问题描述:

>>> docker build -t image_name:v1 .
Sending build context to Docker daemon  2.229MB
Step 1/4 : FROM nvidia/cuda:10.0-cudnn7-runtime-centos7
 ---> Running in 7d171c998c6a
Removing intermediate container 7d171c998c6a
 ---> 494b7b9cbb47
Step 3/4 : RUN yum -y install vim
 ---> Running …
more ...

Docker export vs commit

Date Tags Docker

问题描述:

2021-09-04 14:12:08.686281: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcuda.so.1'; dlerror: /lib64/libcuda.so.1: file too short
2021-09-04 14:12:08.686315: E tensorflow/stream_executor/cuda/cuda_driver …
more ...