GithubHelp home page GithubHelp logo

mydocker's Introduction

MyDocker 个人docker配置

简介 (建议从Releases下载0.4版本)

MyDocker 是一个个人开发的docker镜像项目,该镜像以ubuntu:20.04镜像为基础镜像,并进行了以下的操作

  • 通过shell脚本自动执行apt换源(清华源)
  • 通过apt下载curl,wget,git,vim
  • 通过gitee下载的code-server(code-server项目在github上开源),并进行了初始化配置
  • 容器开启则自动执行code-server指令,运行code-server
  • 默认开放了8080端口(code-server使用) 和 8081端口(无程序占用,可自定义使用)

code-server是一款在github开源的网页代码编辑器,本项目将code-server的deb包分割成两个文件,发布到gitee并通过其下载,使得在国内下载code-server安装包更快


快速上手

本项目构建的镜像已推送到docker hub,可通过docker pull命令拉取镜像

docker pull itlantu/ubuntu 0.4

通过构建也可以得到镜像

构建

  • 需要从master分支或对应版本的分支拉取仓库
  • 执行docker build构建命令
git clone https://github.com/itlantu/MyDocker.git
cd MyDocker
docker build -t itlantu/ubuntu:0.4 .

由于网络可能造成的延迟等问题,构建时间可能会在2-4分钟波动 建议将docker换成国内源,并开启docker的buildkit构建


访问code-server

code-server被设置为默认在0.0.0.0:8080开启,可通过浏览器访问hostlocal:8080打开访问界面 code-server的开放的ip和端口可以在main.sh脚本中修改,关于code-server的更多详细内容请访问code-server项目的文档了解

  • 首先,需要保证(已经构建好了的)容器开启了8080端口的映射
docker -it -p 8080:8081 itlantu/ubuntu:0.4
  • 然后在浏览器访问地址localhost:8080即可
  • 默认密码为123456

问题


更多问题正在更新中...


如有其他问题可以提交issues

mydocker's People

Contributors

itlantu avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.