保存conda的虚拟环境到docker hub

由于自己最近mentor要求保存conda环境到docker hub,以下记录自己的踩坑过程和部署过程。

Docker 安装和使用

此部分主要参考Docker官方文档:https://docs.docker.com/engine/install/ubuntu/
Ubuntu Docker安装

bug: Get Permission Denied

原因
摘自docker mannual上的一段话

Manage Docker as a non-root user

The docker daemon binds to a Unix socket instead of a TCP port. By default that Unix socket is owned by the user root and other users can only access it using sudo. The docker daemon always runs as the root user.

If you don’t want to use sudo when you use the docker command, create a Unix group called docker and add users to it. When the docker daemon starts, it makes the ownership of the Unix socket read/writable by the docker group.

你可能感兴趣的:(docker,anaconda)