<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Roman Dutchak - Medium]]></title>
        <description><![CDATA[Russia is terroris state. - Medium]]></description>
        <link>https://medium.com/dutchak?source=rss----3b052781295c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Roman Dutchak - Medium</title>
            <link>https://medium.com/dutchak?source=rss----3b052781295c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 03:49:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/dutchak" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Managing Multiple GraphQL Endpoints in a Single Application with Apollo]]></title>
            <link>https://medium.com/dutchak/managing-multiple-graphql-endpoints-in-a-single-application-9dbdc4a804a5?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/9dbdc4a804a5</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Thu, 14 Dec 2023 14:40:28 GMT</pubDate>
            <atom:updated>2023-12-13T16:09:12.394Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with multiple GraphQL endpoints in a single application, it’s important to manage the configuration and usage of these endpoints efficiently. Here are some best practices and strategies for handling multiple GraphQL endpoints in your project:</p><h3>1. Separate Apollo Client Instances</h3><p>If you’re using Apollo Client, create separate instances for each endpoint. Each instance will have its own configuration, cache, and error handling. This isolation ensures that operations on one endpoint do not affect the other.</p><pre>import { ApolloClient, InMemoryCache, HttpLink } from &#39;@apollo/client&#39;;<br><br>const createApolloClient = (uri: string): ApolloClient&lt;InMemoryCache&gt; =&gt; new ApolloClient({<br>  link: new HttpLink({ uri }),<br>  cache: new InMemoryCache(),<br>});<br><br>const clientForEndpoint1: ApolloClient&lt;InMemoryCache&gt; = createApolloClient(&#39;YOUR_GRAPHQL_ENDPOINT_1&#39;);<br>const clientForEndpoint2: ApolloClient&lt;InMemoryCache&gt; = createApolloClient(&#39;YOUR_GRAPHQL_ENDPOINT_2&#39;);</pre><h3>2. Contextual Apollo Providers</h3><p>Wrap your components with the appropriate ApolloProvider based on the endpoint they need to access. This can be done at the page level or even at the component level if different parts of a page need to access different endpoints.</p><pre>&lt;ApolloProvider client={clientForEndpoint1}&gt;<br>  &lt;ComponentUsingEndpoint1 /&gt;<br>&lt;/ApolloProvider&gt;<br><br>&lt;ApolloProvider client={clientForEndpoint2}&gt;<br>  &lt;ComponentUsingEndpoint2 /&gt;<br>&lt;/ApolloProvider&gt;</pre><h3>3. Environment Configuration</h3><p>Store the endpoint URIs in an environment configuration file or use environment variables. This approach makes it easier to manage and switch between different environments (development, staging, production).</p><h3>4. Service-Specific Modules</h3><pre>// service1.js<br>export const queryService1 = (query, variables) =&gt; clientForEndpoint1.query({ query, variables });<br><br>// service2.js<br>export const queryService2 = (query, variables) =&gt; clientForEndpoint2.query({ query, variables });</pre><h3>5. Unified GraphQL Layer (Optional)</h3><p>If feasible, consider creating a unified GraphQL layer that combines multiple endpoints into a single schema. This can be achieved through schema stitching or federation, depending on the complexity and control you have over the schemas. This approach can simplify the client-side logic but requires additional server-side setup.</p><h3>6. Error and Loading State Handling</h3><p>Each client instance should have its own error and loading state handling logic. This ensures that issues with one endpoint do not affect the user experience of components using another endpoint.</p><h3>7. Caching Strategies</h3><p>Define caching strategies for each endpoint according to its data-fetching requirements. Different endpoints might have different requirements for data freshness, which can affect how you configure caching.</p><h3>8. Testing</h3><p>Ensure that your testing strategy accommodates the use of multiple clients. Mocking and testing should be done considering the separation of clients and endpoints.</p><h3>Conclusion</h3><p>Managing multiple GraphQL endpoints involves careful structuring of your client instances, clear separation of concerns in your application’s architecture, and appropriate error handling and caching strategies. While it adds some complexity, following these best practices will lead to a more maintainable and scalable application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dbdc4a804a5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/managing-multiple-graphql-endpoints-in-a-single-application-9dbdc4a804a5">Managing Multiple GraphQL Endpoints in a Single Application with Apollo</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iTerm & zsh]]></title>
            <link>https://medium.com/dutchak/%D0%B4%D0%B5%D0%BB%D0%B0%D0%B5%D0%BC-iterm-%D1%8E%D0%B7%D0%B0%D0%B1%D0%B5%D0%BB%D1%8C%D0%BD%D0%B5%D0%B9-%D0%B8-%D0%BD%D0%B5%D0%BC%D0%BD%D0%BE%D1%88%D0%BA-%D0%BE-zsh-75cf82ec64d1?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/75cf82ec64d1</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[iterm]]></category>
            <category><![CDATA[zsh]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Tue, 07 Nov 2017 12:30:12 GMT</pubDate>
            <atom:updated>2023-12-13T16:12:53.096Z</atom:updated>
            <content:encoded><![CDATA[<p>My friends and colleagues often ask me about how I configured iTerm. I decided to share with everyone, actually, there are no difficulties or secrets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4MRQIqGflJhgSP5YhNNAKg.png" /><figcaption>iTerm will be available on all desktops, on top of all windows.</figcaption></figure><p>Such settings are managed by the dropdown in the terminal profile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*50aqTbniFF6y3mZQaVn4sA.png" /></figure><p>I also recommend setting a convenient option to open the window in the directory of the active tab:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YaEIkAA08MM98suJNCvqqA.png" /></figure><p>This is all you need, very simple, no secrets. Also, about a year and a half to two years ago, I switched from BASH to ZSH. I won’t write about how to install it, and its features have already been fully described many times. For OSX, I use <a href="http://ohmyz.sh/">http://ohmyz.sh/</a>.</p><p>And, of course, the official oh-my-zsh documentation <a href="https://github.com/robbyrussell/oh-my-zsh/wiki">https://github.com/robbyrussell/oh-my-zsh/wiki</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75cf82ec64d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/%D0%B4%D0%B5%D0%BB%D0%B0%D0%B5%D0%BC-iterm-%D1%8E%D0%B7%D0%B0%D0%B1%D0%B5%D0%BB%D1%8C%D0%BD%D0%B5%D0%B9-%D0%B8-%D0%BD%D0%B5%D0%BC%D0%BD%D0%BE%D1%88%D0%BA-%D0%BE-zsh-75cf82ec64d1">iTerm &amp; zsh</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Desktop IOTA Wallet (proposal, WIP)]]></title>
            <link>https://medium.com/dutchak/desktop-iota-wallet-proposal-wip-eee1f392110?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/eee1f392110</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[iota]]></category>
            <category><![CDATA[distributed-ledgers]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Fri, 18 Aug 2017 10:59:26 GMT</pubDate>
            <atom:updated>2017-08-18T14:37:41.841Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>For IOTA@UCL and IOTA community.</em></strong></p><p>I don’t like the idea of using design patterns for mobile devices on desktops.<br>Desktop version of the app gives users more opportunities and it’s important not to let it go.<br>Workflow is very different between touch-based interface and mouse/keyboard based one.<br>Also, there is no point in limiting and cropping useful information on larger screens.<br>I recommended several things in my work which in my opinion is convenient:</p><ul><li>Multi Accounts</li><li>Wallet Lock</li><li>Convenient worfkflow with transactions</li><li>Currency exchange rates</li><li>QR support</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p58PdMRf2kYaXTh67MZH8w.png" /><figcaption>Lockscreen (crypt/decrypt files with seed’s)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EAGYCHe_larbvUa7yo29SA.png" /><figcaption>Main screen</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vdUULCGjTJRCOg4y86g3Q.png" /><figcaption>Desktop QR reader</figcaption></figure><h3>Proposal for community: IOTA Invoices</h3><p>Invoices, this is my proposal on the considered community:<br>The idea is that the market/store/device can request invoice on payment <br>and at the discretion of the wallet holder it can be either rejected or accepted.</p><p>The idea is very raw on this stage, that’s why there are problems such as flood by invoices.<br>But there are advantages to it — we can work by subscriptions, possibility to pay on received invoices (e.g balanceless exchange market) <br>- we create an order on the market to buy bitcoin and immediately pay only the required denomination.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOtudeBJK8Txu7TpPFQFMQ.png" /><figcaption>Invoices mechanism</figcaption></figure><p>Now I will continue working on details, after which I’ll plan the work on pull requests.<br>Would be glad to hear your feedback and recommendations.</p><p><strong>Work in progress.</strong></p><p>Old version:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*GjQDZw49570yrjgPpLeFPg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eee1f392110" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/desktop-iota-wallet-proposal-wip-eee1f392110">Desktop IOTA Wallet (proposal, WIP)</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[$ docker swarm deploy]]></title>
            <link>https://medium.com/dutchak/%D1%80%D0%B0%D0%B7%D0%B2%D0%B5%D1%80%D1%82%D1%8B%D0%B2%D0%B0%D0%B5%D0%BC-docker-swarm-2de57fc1024e?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/2de57fc1024e</guid>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Tue, 07 Mar 2017 13:08:26 GMT</pubDate>
            <atom:updated>2023-12-13T16:17:26.687Z</atom:updated>
            <content:encoded><![CDATA[<p>Quickly deploying a Docker Swarm cluster, example on a local machine. I’ve split it into 2 parts for easier reading/viewing. At the same time, we’ll test the asciinema.org service for recording the terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-G7xptej9D-Sh_ZwJh4kYQ.png" /></figure><h4>Creating docker-machine:</h4><p>Docker-machine is a tool that helps install Docker Engine on a virtual machine and allows managing them through the docker-machine CLI tool. With this tool, you can quickly create virtual machines. In NewAge, we use vSphere for virtualization and currently use Terraform for deploying virtual machines. It allows keeping everything in a file and versioning through git, for example. Terraform is a bit of a different thing, though it’s probably worth comparing them, but that’s a topic for another discussion. Among the disadvantages of docker-machine is the lack of something like docker-machine-compose with integration in docker-compose. Among the advantages is its close work with Docker. On my workstation, I use docker native for OSX, which allows working more closely with docker machines. For example, by executing the command: docker-machine env manager, which will assign the cluster to my client, and I will be able to monitor the state directly from my machine.</p><p><a href="https://asciinema.org/a/106085">Create docker-machines for docker swarm</a></p><h4>Creating docker swarm cluster:</h4><p>In the current tutorial, an example will be shown where we create 2 managers and 2 workers. Note that when you perform docker swarm init, you are given a token for the workers. To create a token for the manager, use docker swarm join-token manager.</p><p><a href="https://asciinema.org/a/106088">Setup docker swarm cluster</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2de57fc1024e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/%D1%80%D0%B0%D0%B7%D0%B2%D0%B5%D1%80%D1%82%D1%8B%D0%B2%D0%B0%D0%B5%D0%BC-docker-swarm-2de57fc1024e">$ docker swarm deploy</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[If you are a CTO/VP/R&D/Team Lead, this is for you.]]></title>
            <link>https://medium.com/dutchak/%D0%B5%D1%81%D0%BB%D0%B8-%D0%B2%D1%8B-cto-vp-r-d-team-lead-%D0%B2%D0%B0%D0%BC-%D1%81%D1%8E%D0%B4%D0%B0-492f9be147a?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/492f9be147a</guid>
            <category><![CDATA[events]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Wed, 01 Mar 2017 06:15:57 GMT</pubDate>
            <atom:updated>2023-12-13T16:20:31.463Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*3ipN59Qp4f2zyf1uQuyntA.png" /></figure><p>If you are a CTO/VP/R&amp;D/Team Lead, this is for you.</p><p>The event will be moderated. Only product companies, real problems, real pain. After the meetup, I think the pain will only increase because our daily problems are just the tip of the iceberg, and when exchanging experiences, there is always a surprise — ‘how did I not notice this problem before’. An interesting topic for NewAge is microservices.</p><p>We will try to actively participate in possible discussions, as we have quite strong experience in building distributed systems based on microservices, including infrastructure, automation, and monitoring.</p><p>We encounter very cool things daily related to the actual implementation of microservices.</p><p>In general, go through the moderation and I will be glad to see you at #KyivCTOmeetup</p><p>— —</p><p>On March 11, 2017, Preply and Projector are organizing the Kyiv CTO meetup: <a href="http://bit.ly/kyivctomeetup1">http://bit.ly/kyivctomeetup1</a> Participating are CTOs/VPs of Engineering from Evo (Prom.ua), Ria (Auto.ria), Preply, Competera, Lun.ua/Flatfy, Genesis, Promorepublic, Depositphotos, Cartfresh (Zakaz.ua), YouScan, Lalafo, Jooble, MacPaw, and others.</p><p>Register yourself if you are a CTO/VP of Engineering, or send the technical leaders of your companies while there are still places: <a href="http://bit.ly/kyivctomeetup1">http://bit.ly/kyivctomeetup1</a> #KyivCTOmeetup</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=492f9be147a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/%D0%B5%D1%81%D0%BB%D0%B8-%D0%B2%D1%8B-cto-vp-r-d-team-lead-%D0%B2%D0%B0%D0%BC-%D1%81%D1%8E%D0%B4%D0%B0-492f9be147a">If you are a CTO/VP/R&amp;D/Team Lead, this is for you.</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Add self-sign cert as trusted [OSX]]]></title>
            <link>https://medium.com/dutchak/add-self-sign-cert-as-trusted-osx-a2051884275b?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/a2051884275b</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[os-x]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Sun, 29 Jan 2017 12:25:13 GMT</pubDate>
            <atom:updated>2017-01-29T12:29:39.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CaAjTFW84zV2oyY9ktaNGA.png" /></figure><p>Иногда возникают ситуации когда нам нужно добавить самоподписанный ssl сертификат как трастовый.</p><p>Например такая ситуация может возникнуть, когда мы поднимаем свой приватный реестр Docker Registry.</p><p>Самый простой способ сделать это — через командную строку использую keychain:</p><pre>$ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ~/you_root_ca.crt</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2051884275b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/add-self-sign-cert-as-trusted-osx-a2051884275b">Add self-sign cert as trusted [OSX]</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: парочка лайфхаков]]></title>
            <link>https://medium.com/dutchak/docker-%D0%BF%D0%B0%D1%80%D0%BE%D1%87%D0%BA%D0%B0-%D0%BB%D0%B0%D0%B9%D1%84%D1%85%D0%B0%D0%BA%D0%BE%D0%B2-a592a4066c00?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/a592a4066c00</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Tue, 03 Jan 2017 20:42:19 GMT</pubDate>
            <atom:updated>2017-01-03T20:42:19.475Z</atom:updated>
            <content:encoded><![CDATA[<p>Несколько полезных вещей для начинающих и не только</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHZ-bVe_DRxLZOY0Dvmbwg.jpeg" /></figure><p>Для тех кто только начинает знакомится с <a href="https://www.docker.com/">Docker</a> повторюсь что это такое. Вообщем это ПО для автоматизации развёртывания и управления приложениями в среде <a href="https://ru.wikipedia.org/wiki/%D0%92%D0%B8%D1%80%D1%82%D1%83%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F_%D0%BD%D0%B0_%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D0%B5_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%BE%D0%BD%D0%BD%D0%BE%D0%B9_%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%D1%8B">виртуализации на уровне операционной системы</a>. ПЫСЫ: Только ни в коем случае не путайте виртуализацию с контейнеризацией (читайте <a href="https://ru.wikipedia.org/wiki/Cgroups">cgroups</a>).</p><p>Для тех кто сталкивается с докером каждый день есть несколько полезных лайфхаков. На самом деле, если вы хорошо читали документацию от начала и до конца, то это не будет для вас открытием, но часто не каждый из нас имеет такую возможность (в плане времени и в плане текущих потребностей).</p><h3>Управление контейнерами</h3><p>Создание контейнеров в <strong>docker</strong> достаточно простая процедура. Для этого нужно использовать командуdocker run. Для того что бы посмотреть все активные контейнеры достаточно просто написать docker ps .</p><p>Иногда вам нужно просмотреть все контейнеры которые есть в докере (не запущенные в том числе) для этого добавить флаг docker ps -a . Если вам нужно получить только ID контейнеров используйте следующие флаги docker ps -a -q .</p><p>У нас в компании <strong>NewAge</strong> мы строим достаточно сложную распределенную систему где каждый сервис и его инстанс запускается в отдельном докер контейнере. Контейнеров много и иногда нужно отфильтровать их. Что бы отфильтровать по имени (name колонка имени соотвественно):docker ps -a -f name=trusting_colden.</p><p>Теперь давайте усложним задачу. <strong>Ситуация</strong>: нам нужно удалить все контейнера которые внезапно (или ожидаемо) завершили свою работу:</p><pre>$ docker rm $(docker ps -a -q -f status=exited) # $(some bash code) –  bash конструкция</pre><p>Ведь легко же! Тоже самое например можно проделать с остановкой контейнеров или для других команд docker типа start/stop/kill</p><h3>Запуск контейнеров</h3><p>Давайте запустим минимальный контейнер :</p><pre>$ docker run busybox echo &quot;hello world&quot;</pre><p>который сразу же, после команды echo грохнется на пол. По сути мы говорим мол запусти базовый образ и выполни в нем команду echo &quot;hello world&quot; после чего процесс завершит работу а докер остановит контейнер.</p><p>Для получения последнего созданого контейнера используем следующую команду:</p><pre>$ docker ps -l -q</pre><p>Давайте попробуем узнать IP контейнера из сети докера:</p><pre>docker inspect --format &#39;{{ .NetworkSettings.IPAddress }}&#39; CONTEINER_ID # Где CONTEINER_ID заменяем на интересующий ID </pre><p>Вообще команда docker inspect отдает много <a href="https://docs.docker.com/engine/reference/commandline/inspect/">полезной информации</a> а штука с --format &#39;{{ ... }}&#39; дает навигацию по json дереву которое отдается в результате запроса, например: сетевые настройки, примаунченые волюмы (mounted volumes), конфигурацию с которым запущен контейнер (переменные среды, прокинутые порты, команда которая была запущены при запуске, рабочая директория, ентипоинт, Hostname итд), и многое другое.</p><h3>Управление образами</h3><p>Как и с контейнерами на самом деле все просто. Команда docker images покажет все образы которые загружены в ваш докер. Самый популярный фильтр это dangling=true который покажет образы без тегов и из которых не были созданы контейнеры.</p><p>Удалить образ достаточно просто, используя команду docker rmi . Так же есть удобное массовое удаление образов:</p><pre>docker rmi ubuntu:{trusty,precise}</pre><p>Для удаления всех бразов достаточно запустить команду docker rmi $(docker images -q) она удалит все не привязаные к контейнерам образы. Те что привязаны, докер будет ругаться, но можно использовать лом на свой страх и риск в виде флага docker rmi -f $(docker images -q) или напримерdocker rmi -f $(docker images -q --filter &quot;dangling=true&quot;) . При этом, если контейнер к котрому привязан образ запущенный удалить не получится даже через флаг. Нужно его остановить и только после этого удалять.</p><h4>С версии <a href="https://github.com/docker/docker/milestone/56"><strong>1.13.0</strong></a> появились 4 полезные команды:</h4><p>docker system pruneкоторая удалит все неиспользуемые данные (остановленные контейнеры, волюмы без контейнеров, образы без контейнеров).</p><p>И + еще 3 команды для очистки каждого отдельного случая:</p><p>docker container prune ,docker volume prune ,docker image prune</p><p>Так же появилась команда для получения информации по всем этим ресурсам:</p><p>docker system dfиdocker system df -v которые покажут состояние по ресурсам (коротко и подробно).</p><p>Подробно можно почитать здесь:<br><a href="https://github.com/docker/docker/pull/26108">https://github.com/docker/docker/pull/26108</a></p><h3>От себя</h3><p>Если вы используете docker в продакшн, то, как и по любому другому инструменту, дам совет — изучить более детально возможности и реализацию данного инструмента, это значительно сильней упростит вам жизнь и ускорит процессы. Важно выделять достаточно время на ресерч технологий.</p><p>В скором времени найду время на объяснение работы docker-compose и и сервиса docker registry который позволяет хранить собраные образы а позже расскажу и про docker swarm и скак мы используем его у себя в проектах и какие аналоги рассматривали прежде чем сделать выбор.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a592a4066c00" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/docker-%D0%BF%D0%B0%D1%80%D0%BE%D1%87%D0%BA%D0%B0-%D0%BB%D0%B0%D0%B9%D1%84%D1%85%D0%B0%D0%BA%D0%BE%D0%B2-a592a4066c00">Docker: парочка лайфхаков</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Init]]></title>
            <link>https://medium.com/dutchak/init-3ff8a82526c9?source=rss----3b052781295c---4</link>
            <guid isPermaLink="false">https://medium.com/p/3ff8a82526c9</guid>
            <category><![CDATA[lifesty]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Roman Dutchak]]></dc:creator>
            <pubDate>Thu, 29 Dec 2016 14:23:49 GMT</pubDate>
            <atom:updated>2016-12-29T15:11:39.153Z</atom:updated>
            <content:encoded><![CDATA[<p>Первый пост в блоге. В последнее время появилось много сил что бы писать действительно полезные вещи для @newage. Статьи я буду публиковать на русском в свой блог и адаптировать на английски для поста компании.</p><p>Мой блог будет отличатся от блога компании дополнительной категорией — лайф-стайл блог постов. Остальное по большей мере будет касаться процессов в работе, подходов в разрабокте и интересных архитектурных/технологических решений.</p><p>Так же в @newage будет много говорится о маркетинге, дизайне и других вещах для построения продукта.</p><p>2017 будет ярким.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ff8a82526c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dutchak/init-3ff8a82526c9">Init</a> was originally published in <a href="https://medium.com/dutchak">Roman Dutchak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>