Code Monkey home page Code Monkey logo

docker's Introduction

Docker

下載images

docker pull mysql/mysql-server:latest

https://docs.docker.com/engine/reference/commandline/pull/

https://docs.docker.com/engine/reference/commandline/images/

docker images

完整狀態 不縮邊

docker ps --no-trunc

docker commit

https://yeasy.gitbooks.io/docker_practice/image/commit.html

docker run

docker run -it --name mysql-11111111 -v D:\docker_data\mysql:/var/lib/mysql -v D:\docker_data\mysql_log:/tmp/log -p 3306:3306 -d mysql:aaaaaaa

docker run -it --name leave_mysql -p 3307:3306 -e MYSQL_ROOT_PASSWORD=pwd -d mysql/mysql-server:latest

docker run -it --name le_mysql --net=host -e MYSQL_ROOT_PASSWORD=pwd -d mysql:5.7.26

https://docs.docker.com/engine/reference/run/

自動啟動

docker run --restart=always

docker update --restart=always

docker save

docker save -o mysql.tar mysql:aaaaaaa

docker load

docker load -i mysql.tar

docker tag

docker tag mysql-5.7.26:200305(images) mysql-5.7.26:20-03-24(new tag)

docker push

安全性問題 需要加入名單"Get https://111.111.111.111:5555/v2/: http: server gave HTTP response to HTTPS client"

"insecure-registries": ["111.111.111.111:5555"]

docker push 111.111.111.111:5555/mysql-5.7.26:20-03-24

curl -X GET h ttp://111.111.111.111:5555/v2/_catalog

docker-compose

docker-compose up -d

docker-compose down

docker-compose ps

docker build

docker build -t "al_test:20-03-25" .

docker update

docker update --restart=always CONTAINER_ID

docker exec

docker exec -it CONTAINER_ID bash

Alpine:

docker exec -it XXXXX /bin/sh

o

docker network ls

docker network inspect bridge

docker/for-win#7348

https://ithelp.ithome.com.tw/articles/10193291

es

wsl -d docker-desktop
sysctl -w vm.max_map_count=262144

docker's People

Contributors

escc1122 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.