Coder Social home page Coder Social logo

dockers's Introduction

DOCKERS

The aim of this repository is to collect useful docker-compose files with different services so that they can help other developers to ease their work.

Feel free to add your own or someone else's docker-compose files.

Don't forget to leave a ⭐ if you found this useful.

TOC

Commands

Create and start containers

$> docker-compose up
$> docker-compose up -d #Detached mode: Run containers in the background, print new container names.

Stop and remove containers, networks, images, and volumes

$> docker-compose down

Execute a command in a running container

$> docker-compose exec <servicename> sh #Get into container
$> docker-compose exec <servicename> /bin/bash #Get into container
$> docker-compose exec <servicename> pwd #Run command and exit

View output from containers.

$> docker-compose logs
$> docker-compose logs -f #View output from containers.

Stop and remove all docker containers

$> docker stop $(docker ps -a -q)
$> docker rm $(docker ps -a -q)

Remove all docker images

$> docker rmi $(docker images -q)

Deleting all the volumes

Once all the containers are deleted, you can delete all the Docker volumes on your computer using the following command

$> docker volume prune

Deleting all docker data

$> docker system prune -a

Copy file from container to host

$> docker cp <containerId>:/file/path/within/container /host/path/target

Working with Dockerfiles

Building an image

$> docker build -t <imagename:tag> .

Useful links:

dockers's People

Contributors

joudaon avatar dependabot[bot] avatar

Stargazers

 avatar Petros Stergioulas avatar Park Sang kil avatar

Watchers

 avatar

dockers's Issues

wich will be user fo cassandra cluster?

Connect to a Cassandra Cluster requiring authentication

cassandra-web --hosts '10.0.2.2' --port '9042' --username 'cassweb' --password 'myPassword'

wich will be yours?

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.