Coder Social home page Coder Social logo

docker's Introduction

#docker使用流程

创建一个ubuntu的虚拟机,退出后删除本虚拟机

docker run -it --rm ubuntu:14.04 /bin/bash

创建一个ubuntu的虚拟机,并挂载一个文件夹,退出后删除本虚拟机

docker run -it -v /c/Users/hzlzjr/:/hz/  --rm ubuntu:14.04 /bin/bash

创建一个名字为ubuntu的ubuntu系统虚拟机

docker run -it --name ubuntu ubuntu:14.04 /bin/bash

查看所有虚拟机和状态

docker ps -a

查看运行的虚拟机

docker ps -a

开启虚拟机

docker start ubuntu

进入虚拟机

docker exec -it ubuntu /bin/zsh

剩下的就 为所欲为吧

安装oh my zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

docker换git bash

  • "D:\Program Files\Git\git-bash.exe" "D:\Program Files\Docker Toolbox\start.sh"

ps 在docker default的bin目录下创建可执行文件

docker exec -it ubuntu /bin/zsh
ls -l #2进制换10进制,出来777
chmod 777 文件名

可用工具 screefetch linux_logo或linuxlogo

apt-get install linux_logo或linuxlogo
linux_logo -f -L list //查看内置列表
linux_logo -f -L aix  //查看aix logo
linux_logo -f -L openbsd //查看openbsd logo
linux_logo -f -L random_xy //随机查看

screefetch -h
linux_logo -h
sourcetree```

docker's People

Contributors

renzhaozhao avatar

Watchers

James Cloos avatar  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.