Giter Club home page Giter Club logo

linux-tips-curso-docker's Introduction

linux-tips-curso-docker

Criando uma imagem básica

docker image build -t toskeira:1.0 .

Volumes

docker volume ls

docker volume create teste

docker volume inspect teste

docker container run -it --mount type=volume,src=teste,dst=/giropops debian

docker volume rm teste

docker volume prune --all docker/cli#4028

Criar um volume

docker volume create teste

Subir dois serviços do postgres utilizando o volume

docker run -d -p 5432:5432 --name pgsql1 --mount type=volume,src=teste,dst=/data -e POSTGRESQL_USER=docker -e POSTGRESQL_PASS=docker -e POSTGRESQL_DB=docker kamui/postgresql

docker run -d -p 5433:5432 --name pgsql2 --mount type=volume,src=teste,dst=/data -e POSTGRESQL_USER=docker -e POSTGRESQL_PASS=docker -e POSTGRESQL_DB=docker kamui/postgresql

Images

docker commit -m "Ubuntu com vim e curl" 3da

docker image tag 0c4d48d615b2 ubuntu-with-vim-curl:1.0

Push

docker image tag 6a3d7011ebb4 danillo/meuapache:1.0.0

docker push danillo/meuapache:1.0.0 https://hub.docker.com/repository/docker/danillo/meuapache/general

linux-tips-curso-docker's People

Contributors

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