learning_notes

学习笔记

View project on GitHub

常见问题

  • 安装docker出现缺少libsystemd-journal0 添加源 deb http://cz.archive.ubuntu.com/ubuntu trusty main,然后sudo apt-get update && sudo apt-get install libsystemd-journal0

  • 国内安装

国内安装 搭建mxnet-gpu docker的pyhon remote kernel

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
  • alpine镜像时区问题

构建镜像的过程参考

FROM alpine:3.2
#添加时区
RUN set -xe && apk add --no-cache tzdata && cp -r -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ADD account_api /account_api
ENTRYPOINT [ /account_api ] 

{
 "registry-mirrors" : [
   "https://mirror.ccs.tencentyun.com",
   "http://registry.docker-cn.com",
   "http://docker.mirrors.ustc.edu.cn",
   "http://hub-mirror.c.163.com"
 ],
 "insecure-registries" : [
   "registry.docker-cn.com",
   "docker.mirrors.ustc.edu.cn"
 ],
 "debug" : true,
 "experimental" : true
}
  • docker-compose 创建一个子网 ```yaml version: ‘3.2’

services: metabase: restart: always image: metabase/metabase:latest container_name: metabase networks: - event-net

networks: event-net: ipam: driver: default config: - subnet: “192.168.33.0/24” ```

  • 如何查看docker启动命令

    • runlink