Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 
  • #d
  • #do
  • #doc
  • #dock
  • #docker
RSS: #docker-compose

#docker-compose

  • #docker-compose.either
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 21/01/2019

    A Better Way to Develop Node.js with #docker
    ▻https://hackernoon.com/a-better-way-to-develop-node-js-with-docker-cd29d3a0093?source=rss----3a

    https://cdn-images-1.medium.com/max/1024/1*ky5FTIuzIlCNUTR8en_JOA.png

    And Keep Your Hot Code ReloadingLicensed from Adobe Stock PhotoI’ve seen a lot of articles lately suggesting how to use Docker for development. I haven’t seen one yet that does it correctly.Obviously, correctly, is subjective, but I’d like to compare the typical wisdom, vs. how I usually approach the problem.The Conventional WisdomIn many tutorials, the first thing introduced is the Dockerfile.At the foundation of any Dockerized application, you will find a Dockerfile — ▻https://blog.codeship.com/using-docker-compose-for-nodejs-development/It apparently, is the foundation.The first several results on Google all suggest the first thing you need is a Dockerfile, as well.After all, how can you have a Docker environment without creating a Dockerfile?I’m here to tell that while this is true for (...)

    #docker-compose #software-development #nodejs #nodejs-and-docker

    • #Docker
    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 29/06/2018

    A Practical #introduction to #docker Compose
    ▻https://hackernoon.com/practical-introduction-to-docker-compose-d34e79c4c2b6?source=rss----3a81

    https://cdn-images-1.medium.com/max/1000/1*JK4VDnsrF6YnAb2nyhMsdQ.png

    TL;DRDocker #containers opened a world of possibilities for the tech community, hassles in setting up new software were decreased unlike old times when a mess was to be sorted by a grievous format, it reduced the time to set up and use new software which eventually played a big part for techies to learn new things, roll it out in a container and scrap it when done. Things became easy, and the best thing its open source anyone and everyone can use it, comes with a little learning curve though.Out of the myriad possibilities was the possibility of implementing complex technology stacks for our applications, which previously would have been the domain of experts. Today with the help of containers software engineers with sound understanding of the underlying systems can implement a complex (...)

    #docker-compose #containerization

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 30/04/2018
    1
    @sandburg
    1

    #docker run vs exec: deep-dive into their differences
    ▻https://hackernoon.com/docker-run-vs-exec-deep-dive-into-their-differences-19a1041735a3?source=

    https://cdn-images-1.medium.com/max/1024/1*MhstbI8rlsFY9prx8YcKkg.png

    Both Docker run and exec execute commands in a Docker container. However, there are key differences in their use that suit different situations.Docker logo. Source: Docker on GithubDocker concepts, such as images and containers- Docker: Get StartedUsing Docker commands- Top 10 Docker commands you can’t live without- Run #bash or any command in a Docker containerrunUse this to run a command in a new container. It suits the situation where you do not have a container running, and you want to create one, start it and then run a process on it.docker run [OPTIONS] IMAGE [COMMAND] [ARG...]Following the docker run command, you must specify the image to create the container from, but there are optional arguments you can pass as well. For example:docker run —name ubuntu_bash —rm -i -t ubuntu (...)

    #command-line #docker-compose #tech

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 30/04/2018

    Run #bash or any command in a #docker container
    ▻https://hackernoon.com/run-bash-or-any-command-in-a-docker-container-9a1e7f0ec204?source=rss---

    https://cdn-images-1.medium.com/max/512/1*4p2q9pGNiULh0c4wzWLcWw.png

    The docker logoOnce you’ve defined your images and Dockerfiles, you then may want to enter a container to run bash or other commands. There are a few different ways to do this depending on whether you are using docker or #docker-compose.Either use docker run to create a container and run the command in it, or use docker exec to run a command in an existing container. More explanation of their differences can be read in my post:- Docker run vs exec: deep-dive into their differencesDockerAssuming you know the name of your container, or if you don’t run docker ps to list the processes running and copy the container name…Use either docker run or use docker exec with the -i (interactive) flag to keep stdin open and -t to allocate a terminal.docker exec -i -t container_name /bin/bashOr to run (...)

    #tech #programming

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 17/04/2018

    Top 10 #docker commands you can’t live without
    ▻https://hackernoon.com/top-10-docker-commands-you-cant-live-without-54fb6377f481?source=rss----

    https://cdn-images-1.medium.com/max/792/1*126sHZF_Xo8TVuk6ybWnlA.png

    Docker is a great tool for building microservices, allowing you to create cloud-based applications and systems. To make the most of it via your terminal, here is a run down of the top 10 Docker commands for your terminal.A container is launched by running an image. An image is an executable package that includes everything needed to run an application–the code, a runtime, libraries, environment variables, and configuration files.A container is a runtime instance of an image–what the image becomes in memory when executed (that is, an image with state, or a user process). You can see a list of your running containers with the command, docker ps, just as you would in Linux. — from Docker Conceptsdocker ps — Lists running containers. Some useful flags include: -a / -all for all containers (default (...)

    #docker-compose #cli #command-line #bash

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire
  • @hackernoon
    Hacker Noon @hackernoon CC BY-SA 6/04/2018

    Finally you can share #docker machines — without a script
    ▻https://hackernoon.com/finally-you-can-share-docker-machines-without-a-script-8f946d050f7?sourc

    https://cdn-images-1.medium.com/max/1024/1*rzsn1mA1i5iFcGu6nXkozA.jpeg

    Docker Machine is the single easiest way to provision a new Docker host or machine. I use it to setup new remote staging servers and it takes a minute at most. It selects an appropriate Linux distribution for the Docker Engine and installs the Docker daemon, all in one go.It can do all of this with 15 different cloud providers! You can set up a server in any of them, using the same simple command docker-machine create.For example, if you’re using #aws, Docker Machine calls the AWS API on your behalf to create an EC2 instance into your AWS account.— it’s blazing fast — the command line is dead simple — it manages all of the SSH keys and TLS certificates even if you have dozens of servers — makes your servers immediately ready for Docker deploymentsBut there’s one pain… It can only store all of its (...)

    #laravel #docker-compose #teamwork

    Hacker Noon @hackernoon CC BY-SA
    Écrire un commentaire

Thèmes liés

  • #docker
  • #bash
  • #command-line
  • #tech
  • technology: linux
  • operatingsystem: linux