4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:docker — newest first
  • Note: docker bug

    Today I got a docker daemon not responding to commands (docker ps, docker run...)
    Even after restarting service
    In /var/log/docker I got this:
    time="2017-03-01T08:28:58.43946917Z" level=fatal msg="open /var/run/docker/libcontainerd/containerd/81623262351dfc42c5e87aa8df11592a57f2d14a468476620c7c4d6c89de1958/state.json: no such file or directory"

    The solution was to stop docker service, remove this /var/run/docker directory and restart docker service

    March 1, 2017 - permalink - https://links.infomee.fr/shaare/vywQIw
    bug docker
  • Note: Docker stop non standard software (ignoring SIGTERM)

    docker stop command send SIGTERM to pid1 inside the container to let a chance to stop gracefully (https://www.ctl.io/developers/blog/post/gracefully-stopping-docker-containers/)
    Unfortunatly some software ignore SIGTERM and need to be stopped by their own command (hello opendj)

    To do so, in the Dockerfile, in the CMD, I use a script like this :
    /thecommand/tostart/thesoftware/inbackground
    trap "/thecommand/tostop/thesoftware" SIGTERM
    while true; do sleep 1; done

    so my script is run with PID1, docker stop sends SIGTERM, my script catch (trap) the signal, and run the command to stop gracefully

    February 16, 2017 - permalink - https://links.infomee.fr/shaare/Mxx31A
    catch docker ini script signal stop trap
  • library/buildpack-deps - Docker Hub

    TIL what is this offical repository :

    Only debian with some useful package to build dependencies (needed when you install some gem for example)

    For example ruby:2.3 Dockerfile use a buildpack-deps image

    February 10, 2017 - permalink - https://hub.docker.com/_/buildpack-deps/
    debian docker ruby
  • Note: Expected or not

    I don't know if this shit is expected (normal behaviour or not) but this is annoying

    bash :

    $ toto=tata
    $ echo $toto
    tata

    $ toto='tata'
    $ echo $toto
    tata

    $ toto="tata"
    $ echo $toto
    tata

    avec docker run -e

    $ docker run -e toto=tata -it debian:jessie bash
    root@5de64152ed05:/# echo $toto
    tata

    $ docker run -e toto='tata' -it debian:jessie bash
    root@99a6b62f595c:/# echo $toto
    tata

    $ docker run -e toto="tata" -it debian:jessie bash
    root@ab7581c30734:/# echo $toto
    tata

    avec docker run --env-file:

    $ cat env.file
    toto="tata"
    $ docker run -it --env-file env.file debian:jessie bash
    root@805480de4a52:/# echo $toto
    "tata"

    $ cat env.file
    toto='tata'
    $ docker run -it --env-file env.file debian:jessie bash
    root@004b88cc448d:/# echo $toto
    'tata'

    $ cat env.file
    toto=tata
    $ docker run -it --env-file env.file debian:jessie bash
    root@2ca9908d1cdf:/# echo $toto
    tata

    avec docker compose:

    $ cat docker-compose.yml
    version: '2'
    services:
    foo:
    image: debian:jessie
    container_name: foo
    environment:
    - toto1=tata
    - toto2="tata"
    - toto3='tata'
    command: tail -f /var/log/dmesg

    docker-compose up -d
    docker exec -it foo bash

    root@71a9a886cc24:/# echo $toto1
    tata
    root@71a9a886cc24:/# echo $toto2
    "tata"
    root@71a9a886cc24:/# echo $toto3
    'tata'

    February 2, 2017 - permalink - https://links.infomee.fr/shaare/lXfuBg
    docker env value variable
  • Docker 1.13

    Sympa les petites nouveautés!

    docker system df
    docker system prune

    CLI restructured <3

    Improved CLI backwards compatibility <3

    January 30, 2017 - permalink - https://blog.docker.com/2017/01/whats-new-in-docker-1-13/
    docker
  • Releases · docker/compose 1.10

    Compose file version 2.1 and up

    Healthcheck configuration can now be done in the service definition using
    the healthcheck parameter
    Containers dependencies can now be set up to wait on positive healthchecks
    when declared using depends_on. See the documentation for the updated
    syntax.
    
    January 23, 2017 - permalink - https://github.com/docker/compose/releases
    docker
  • ofelia/README.md at master · mcuadros/ofelia · GitHub
    December 26, 2016 - permalink - https://github.com/mcuadros/ofelia/blob/master/README.md
    cron docker
  • GitHub - jwilder/nginx-proxy: Automated nginx proxy for Docker containers using docker-gen
    December 13, 2016 - permalink - https://github.com/jwilder/nginx-proxy
    docker nginx proxy
  • Edit a file in-place in vim - Stack Overflow

    Comment perdre 30 min

    :set backupcopy=yes

    When you want to modify a file, you have two options, each with its benefits and drawbacks.

    You can overwrite the file in place. This does not use any extra space, and conserves the hard links, permissions and any other attribute beyond the content of the existing file. The major drawback of doing this is that if anything happens while the file is being written (the application crashes, or the power goes out), you end up with a partially written file.
    You can write the new version of the file to a new file with a different name, then move it into place. This uses more space and breaks hard links, and if you have write permissions on a file but not on the directory it contains, you can't do it at all. On the flip side, the old version of the file is atomically replaced by the new version, so at every point in time the file name points to a valid, complete version of the file.
    

    http://vimdoc.sourceforge.net/htmldoc/options.html#%27backup%27

    November 23, 2016 - permalink - http://stackoverflow.com/questions/11043534/edit-a-file-in-place-in-vim
    docker file mount vim
  • Docker Build Container Pattern - Slashdeploy Blog

    docker run --rm -it -u $(id -u) -v "${PWD}:/data" -w /data ruby:2.3 \
    bundle package --all

    November 15, 2016 - permalink - http://blog.slashdeploy.com/2016/11/07/docker-build-container-pattern/
    build docker
  • Dockerfile reference - Docker

    Note: Environment persistence can cause unexpected side effects. For example, setting ENV DEBIAN_FRONTEND noninteractive may confuse apt-get users on a Debian-based image. To set a value for a single command, use RUN = .

    The environment variables set using ENV will persist when a container is run from the resulting image. You can view the values using docker inspect, and change them using docker run --env =.

    November 2, 2016 - permalink - https://docs.docker.com/engine/reference/builder/#/env
    bestpractice docker
  • maven - How to build a docker container for a java app - Stack Overflow

    La deuxieme approche me semble mieux.. Deux étapes pour build seulement :

    git clone
    docker build

    Au lieu de :

    git clone
    mvn clean install
    docker build

    October 31, 2016 - permalink - http://stackoverflow.com/questions/31696439/how-to-build-a-docker-container-for-a-java-app
    ci docker
  • 10 things to avoid in docker containers – Red Hat Developer Blog
    August 26, 2016 - permalink - http://developers.redhat.com/blog/2016/02/24/10-things-to-avoid-in-docker-containers/
    docker
  • It’s The Future - CircleCI

    So I just need to split my simple CRUD app into 12 microservices, each with their own APIs which call each others’ APIs but handle failure resiliently, put them into Docker containers, launch a fleet of 8 machines which are Docker hosts running CoreOS, “orchestrate” them using a small Kubernetes cluster running etcd, figure out the “open questions” of networking and storage, and then I continuously deliver multiple redundant copies of each microservice to my fleet. Is that it?

    -Yes! Isn’t it glorious?

    I’m going back to Heroku.

    Flamewar started

    August 18, 2016 - permalink - https://circleci.com/blog/its-the-future/
    docker future heroku
  • The beginners guide to Infrastructure Automation — Medium

    [Summary, full note in Shaarli]
    The beginner's guide to Infrastructure Automation (Medium, @rdsubhas, via cron weekly). "Encore un bon article qui explique où se situe Docker vis à vis de la CM."

    • Coordinated releases and snowflake servers: manual deployments over a weekend, every server set up by hand, easy mistakes (one forgotten server in the 2012 trading disruption cost over $400M), and nobody can rebuild a server that dies.
    • Task runners (Bash, Perl, Python scripts): automate the steps but are neither idempotent ("user already exists" on a second run) nor portable (apt-get vs yum, coreutils differences).
    • Configuration management (CFEngine, Puppet, Chef, Ansible, Salt): describe the end state (user www in group nobody, /var/www owned by www, OpenJDK 1.6) and the tool works out the diff. Idempotent and cross-platform. Pitfalls: admins writing execute "apt-get ..." everywhere, developers writing endless include_recipe; you need both ops and dev skills, sometimes the automation code is bigger than the app.
    • Immutable infrastructure: always throw the old server away and start from a fresh, identical OS, so plain scripts are enough. Made practical by VMs, cloud and Vagrant. Pros: no patching live machines, no soft upgrades, zero-downtime switch. Cons: slow to provision, service discovery as IPs change, no persistent data on the server (hard for databases, NFS), co-hosting apps.
    • Containers: kernel features (process groups with CPU/memory limits, chroot, virtual ethernet, mounts) give a sandbox close to a VM that starts in seconds; Unix zones, then LXC made it mainstream.
    • Container images: Docker made repeatable images (Dockerfile = a "fat application") shipped from dev to prod; hosts only need Docker (CoreOS, Rancher).
    • State isn't dead: it shrinks to environment variables per environment.
    • DevOps: devs own their application's image, ops build the platform that runs containers (scalability, performance, resilience, uptime). Devs do ops, ops do dev.
    July 17, 2016 - permalink - https://medium.com/@rdsubhas/demystifying-devops-part-1-3745bf1da72e#.bvarz68oz
    cm devops docker puppet
  • Containers Vs. Config Management

    bonne description

    July 11, 2016 - permalink - https://blog.containership.io/containers-vs-config-management-e64cbb744a94
    chef cm docker puppet
  • Deploy your OpenVPN server in 44 seconds

    Cool en plus c'est open source (docker)

    July 7, 2016 - permalink - https://www.scaleway.com/imagehub/openvpn/
    docker openvpn
  • Docker Swarm Mode Walkthrough

    Génial ce qu'on peut faire avec Docker out of the box maintenant :-)

    July 4, 2016 - permalink - https://www.youtube.com/watch?v=KC4Ad1DS8xU
    docker swarm twitter
  • Containers Vs. Config Management
    June 26, 2016 - permalink - https://blog.containership.io/containers-vs-config-management-e64cbb744a94?gi=9f56020ac4e0
    12factor bestof docker
  • The Twelve-Factor App
    June 26, 2016 - permalink - http://12factor.net/
    12factor best ci docker env factor plan practice unix variable
  • The Children's Illustrated Guide to Kubernetes
    June 19, 2016 - permalink - https://deis.com/blog/2016/kubernetes-illustrated-guide/
    cronweekly docker k8s
  • GitLab Container Registry | GitLab

    via Doo

    May 24, 2016 - permalink - https://about.gitlab.com/2016/05/23/gitlab-container-registry/
    ci deploy docker
  • 10 things to avoid in docker containers – Red Hat Developer Blog

    via skunnyk

    March 1, 2016 - permalink - http://developerblog.redhat.com/2016/02/24/10-things-to-avoid-in-docker-containers/
    docker
  • Distribution packages considered insecure

    Via twitter

    February 15, 2016 - permalink - https://statuscode.ch/2016/02/distribution-packages-considered-insecure/?utm_content=buffer587de&utm_medium=social
    arch docker package rolling security
  • Network-scoped alias

    merci docker

    February 9, 2016 - permalink - https://docs.docker.com/engine/userguide/networking/work-with-networks/#network-scoped-alias:6a2956e9fcff0a6857d6d878fd3f4424
    docker
  • /ˈTræfɪk/

    Un lb en Go qui peut "surveiller" les backends comme Docker par exemple pour update sa conf

    January 21, 2016 - permalink - https://traefik.github.io/
    docker go haproxy lb loadbalancer nginx
  • SUSE/Portus

    via VG

    December 3, 2015 - permalink - https://github.com/SUSE/Portus
    docker registry
  • Work with network commands

    On the isolated_nw which was user defined, the Docker network feature updated the /etc/hosts with the proper name resolution. Inside of container2 it is possible to ping container3 by name.

    November 26, 2015 - permalink - https://docs.docker.com/engine/userguide/networking/work-with-networks/
    docker network
  • Docker container networking

    La doc évolue vite au fur et à mesure des versions.. en la relisant j'ai appris plein de nouvelles choses

    November 26, 2015 - permalink - https://docs.docker.com/engine/userguide/networking/dockernetworks/
    docker network
  • Three Solutions to Bi-directional Linking Problem in Docker Compose | Abdelrahman Hosny

    Cette solution semble etre un bon compromis quand on veut du lien bidirectionnel (ce qui n'est pas possible avec les links) :

    http://sgillis.github.io/posts/2015-03-23-docker-dns.html
    https://github.com/tonistiigi/dnsdock

    November 24, 2015 - permalink - http://abdelrahmanhosny.com/2015/07/01/3-solutions-to-bi-directional-linking-problem-in-docker-compose/
    dns docker link
  • doger.io - wow such container
    October 7, 2015 - permalink - http://doger.io/
    container docker linux lxc
  • Containing your logical backups: mydumper in docker
    September 22, 2015 - permalink - https://www.percona.com/blog/2015/09/21/containing-logical-backups-mydumper-docker/
    backup docker mysql
  • Using Docker to Build Debian Packages | via @codeship

    via Doo

    August 19, 2015 - permalink - http://blog.codeship.com/using-docker-build-debian-packages/
    build deb docker
  • spotify/docker-gc

    via Doo

    August 7, 2015 - permalink - https://github.com/spotify/docker-gc
    docker gc
  • boycott docker
    June 15, 2015 - permalink - http://www.boycottdocker.org/
    docker
  • http://www.centurylinklabs.com/gracefully-stopping-docker-containers/
    May 18, 2015 - permalink - http://http://www.centurylinklabs.com/gracefully-stopping-docker-containers/
    docker
  • Docker Without Docker

    via alk

    April 27, 2015 - permalink - https://chimeracoder.github.io/docker-without-docker/#19
    docker
  • RancherOS | Rancher Labs
    April 21, 2015 - permalink - http://rancher.com/rancher-os/
    distrib docker
  • CoreOS is Linux for Massive Server Deployments
    April 21, 2015 - permalink - https://coreos.com/
    distrib docker
  • Next generation development with Docker and Fig
    January 27, 2015 - permalink - http://blog.stxnext.com/posts/2015/01/development-with-docker-and-fig/
    docker fig
  • Docker & Puppet for Application Management — and Sanity | Puppet Labs
    January 18, 2015 - permalink - http://puppetlabs.com/blog/docker-and-puppet-for-application-management
    docker puppet
  • Elasticsearch, Logstash & Kibana with Docker | William DURAND
    January 18, 2015 - permalink - http://williamdurand.fr/2014/12/17/elasticsearch-logstash-kibana-with-docker/
    docker elk
  • 24 random docker tips by Csaba Palfi
    January 18, 2015 - permalink - http://csaba.palfi.me/random-docker-tips/
    docker
  • Attach a volume to a container while it is running

    via skunnyk

    January 14, 2015 - permalink - http://jpetazzo.github.io/2015/01/13/docker-mount-dynamic-volumes/
    docker
  • abh1nav/cassandra Repository | Docker Hub Registry - Repositories of Docker Images

    docker <3

    January 13, 2015 - permalink - https://registry.hub.docker.com/u/abh1nav/cassandra/
    cassandra docker
  • Docker Image Insecurity · Jonathan Rudenberg
    January 1, 2015 - permalink - https://titanous.com/posts/docker-insecurity
    docker
  • How to Centralize Logs from Docker Containers -
    January 1, 2015 - permalink - https://www.loggly.com/blog/centralize-logs-docker-containers/
    docker log
  • Docker and DevOps: Why it Matters - Application Performance Monitoring Blog from AppDynamics
    January 1, 2015 - permalink - http://blog.appdynamics.com/devops/docker-and-devops-why-it-matters/
    docker
  • Workshop : 45 minutes pour comprendre Docker avec Jérôme Petazzoni - YouTube

    avec les slides :
    http://fr.slideshare.net/jpetazzo/introduction-to-docker-december-2014-tour-de-france-edition

    http://fr.slideshare.net/jpetazzo/introduction-to-docker-december-2014-tour-de-france-bordeaux-special-edition

    December 20, 2014 - permalink - https://www.youtube.com/watch?v=bXSC3-mrgWA
    conf docker
  • Install Docker with OVH kernels on Debian Wheezy | Themecloud tech blog
    December 18, 2014 - permalink - http://tech.themecloud.io/install-docker-with-ovh-kernels-on-debian-wheezy/
    docker ovh wheezy
▼ Load 50 more