{"id":401228,"date":"2024-06-29T15:42:55","date_gmt":"2024-06-29T15:42:55","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=401228"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=401228","title":{"rendered":"<span>Docker \u0438 Apple M1<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u043a\u0430\u0437\u0443\u0441 \u043f\u0440\u0438\u0432\u0435\u043b \u043a \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 Apple M1, \u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e&#8230;<\/p>\n<p>\u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u041c\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433\u0430, \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 MacBook Pro \u0441 M1 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u043a\u043e \u043c\u043d\u0435 \u0441 \u043f\u0440\u043e\u0441\u044c\u0431\u043e\u0439 \u043f\u043e\u043c\u043e\u0447\u044c \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 <a href=\"https:\/\/pypi.org\/project\/qvd\/\" rel=\"noopener noreferrer nofollow\">\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/a>.<\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 MacBook, \u043d\u043e \u043d\u0430 Intel Core i5, macOS Big Sur. \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <\/p>\n<blockquote>\n<p>pip install qvd<\/p>\n<p><em>ERROR: Could not find a version that satisfies the requirement qvd (from versions: none)<\/em><\/p>\n<p><em>ERROR: No matching distribution found for qvd<\/em><\/p>\n<\/blockquote>\n<p>\u041e\u0431\u044b\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0431\u044b\u0432\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c, \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0439 \u0441 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u041e\u0421. \u0412 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u044f \u0434\u0435\u043b\u0430\u044e &#8212; \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0432 docker container, \u0442\u0430\u043c \u0443 \u043c\u0435\u043d\u044f \u043e\u0447\u0435\u043d\u044c \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0432\u044b\u0431\u043e\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u041e\u0421 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a.<\/p>\n<p>Dockerfile:<\/p>\n<pre><code>FROM python:3.8-slim-buster  RUN apt-get update &amp;&amp; apt-get install -y netcat  COPY . \/app WORKDIR \/app  RUN pip install --upgrade pip RUN pip install -r requirements.txt  CMD [\"python\", \"main.py\"]<\/code><\/pre>\n<p>requirements.txt:<\/p>\n<pre><code>qvd==0.0.10<\/code><\/pre>\n<p>main.py:<\/p>\n<pre><code class=\"python\">import qvd   if __name__ == '__main__':   print('Hello, qvd')<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<blockquote>\n<p>docker build -t testqvd:latest .<\/p>\n<\/blockquote>\n<p>\u0418 \u043e\u043f-\u043b\u044f, \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0432\u0441\u0442\u0430\u0435\u0442, \u043e\u0431\u0440\u0430\u0437 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f:<\/p>\n<blockquote>\n<p>docker run testqvd<\/p>\n<p>Hello, qvd<\/p>\n<\/blockquote>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044e (\u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043a \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435), \u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e-\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443, \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b \u0438\u0445 \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439.<\/p>\n<p>\u041e\u0442\u0434\u0430\u044e \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043e\u043b\u043b\u0435\u0433\u0435, \u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f!<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"\" width=\"0\" height=\"0\"\/><figcaption><\/figcaption><\/figure>\n<blockquote>\n<p>docker -v<\/p>\n<p>Docker version 20.10.7, build f0df350<\/p>\n<\/blockquote>\n<p>\u0423 \u043d\u0430\u0441 \u043e\u0431\u043e\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f docker \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442. \u0412 \u0447\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u0430? \u0412\u0435\u0434\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437 Dockerfile \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0438\u0434\u0435\u0442 \u0432 \u043e\u0431\u0440\u0430\u0437\u0435 python:3.8-slim-buster, \u043e\u043d \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0443 \u043d\u0430\u0441. \u041d\u0430\u0434\u043e \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0433\u043b\u0443\u0431\u0436\u0435, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 pip<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043f\u043e\u0447\u0435\u043c\u0443 qvd \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043d\u0430 Big Sur:<\/p>\n<blockquote>\n<p>pip install -vvv qvd<\/p>\n<\/blockquote>\n<p>\u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e &#8212; \u00a0<em>none of the wheel&#8217;s tags (<\/em><strong><em>cp37-none-win_amd64<\/em><\/strong><em>) are compatible (run pip debug &#8212;verbose to show compatible tags)<\/em>, \u0442\u0430\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0438 \u0441\u0440\u0435\u0434\u0438 \u043d\u0438\u0445 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e win \u0438 manylinux. <\/p>\n<p> \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c <\/p>\n<blockquote>\n<p>pip debug &#8212;verbose<\/p>\n<\/blockquote>\n<p>\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0442\u044d\u0433\u043e\u0432 pip. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 win \u0442\u0430\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435\u0442, \u0430 \u0435\u0441\u0442\u044c py32-none-macosx_10_13_x86_64<em> (\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435).<\/em> \u0412\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u044e \u0441\u044e\u0434\u0430: <a href=\"https:\/\/github.com\/pypa\/manylinux\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/pypa\/manylinux<\/a><\/p>\n<p>\u0422\u044d\u0433\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043f\u043e \u0432\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c &#8212; \u0435\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 Big Sur. \u041e\u041a, \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043d\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u043e\u0431\u0440\u0430\u0437\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u041e\u0421 \u0438\u0437  \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0432 Dockerfile \u0441\u0442\u0440\u043e\u0447\u043a\u0443: <\/p>\n<pre><code>FROM python:3.8-slim-buster  RUN apt-get update &amp;&amp; apt-get install -y netcat  COPY . \/app WORKDIR \/app  RUN pip install --upgrade pip RUN pip debug --verbose > \/tmp\/pip.txt RUN pip install -r requirements.txt  CMD [\"python\", \"main.py\"]<\/code><\/pre>\n<p>\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<blockquote>\n<p>docker build -t testqvd:latest -o \/tmp\/buildlogs<\/p>\n<\/blockquote>\n<p> \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0444\u0430\u0439\u043b \/tmp\/buildlogs\/tmp\/pip.txt \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0442\u044d\u0433\u043e\u0432 pip \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043c\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433\u0430. \u0418 \u043e\u043d\u0438 (\u0442\u044d\u0433\u0438) \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u043c\u0438, \u0443 \u043c\u0435\u043d\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, &#8212; <em>py38-none-manylinux_2_16_x86_64, <\/em>\u0443 \u043a\u043e\u043b\u043b\u0435\u0433\u0438 <em>py37-none-manylinux_2_28_aarch64<\/em><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 M1  (\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e) \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 Intel Core \u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u043c\u0438 \u0445\u0438\u0442\u0440\u044b\u043c\u0438 docker &#8212; \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u042f \u043f\u043e\u043a\u0430 \u043f\u043e\u043e\u0441\u0442\u0435\u0440\u0435\u0433\u0443\u0441\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 M1 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043e\u0442\u0441\u043e\u0432\u0435\u0442\u0443\u044e.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/587318\/\"> https:\/\/habr.com\/ru\/articles\/587318\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u043a\u0430\u0437\u0443\u0441 \u043f\u0440\u0438\u0432\u0435\u043b \u043a \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 Apple M1, \u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e&#8230;<\/p>\n<p>\u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443. \u041c\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433\u0430, \u0432\u043b\u0430\u0434\u0435\u043b\u0435\u0446 MacBook Pro \u0441 M1 \u043e\u0431\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u043a\u043e \u043c\u043d\u0435 \u0441 \u043f\u0440\u043e\u0441\u044c\u0431\u043e\u0439 \u043f\u043e\u043c\u043e\u0447\u044c \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 <a href=\"https:\/\/pypi.org\/project\/qvd\/\" rel=\"noopener noreferrer nofollow\">\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/a>.<\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 MacBook, \u043d\u043e \u043d\u0430 Intel Core i5, macOS Big Sur. \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <\/p>\n<blockquote>\n<p>pip install qvd<\/p>\n<p><em>ERROR: Could not find a version that satisfies the requirement qvd (from versions: none)<\/em><\/p>\n<p><em>ERROR: No matching distribution found for qvd<\/em><\/p>\n<\/blockquote>\n<p>\u041e\u0431\u044b\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0431\u044b\u0432\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0435\u0441\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c, \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b\u0439 \u0441 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u041e\u0421. \u0412 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u044f \u0434\u0435\u043b\u0430\u044e &#8212; \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0432 docker container, \u0442\u0430\u043c \u0443 \u043c\u0435\u043d\u044f \u043e\u0447\u0435\u043d\u044c \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0432\u044b\u0431\u043e\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u041e\u0421 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a.<\/p>\n<p>Dockerfile:<\/p>\n<pre><code>FROM python:3.8-slim-buster  RUN apt-get update &amp;&amp; apt-get install -y netcat  COPY . \/app WORKDIR \/app  RUN pip install --upgrade pip RUN pip install -r requirements.txt  CMD [\"python\", \"main.py\"]<\/code><\/pre>\n<p>requirements.txt:<\/p>\n<pre><code>qvd==0.0.10<\/code><\/pre>\n<p>main.py:<\/p>\n<pre><code class=\"python\">import qvd   if __name__ == '__main__':   print('Hello, qvd')<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<blockquote>\n<p>docker build -t testqvd:latest .<\/p>\n<\/blockquote>\n<p>\u0418 \u043e\u043f-\u043b\u044f, \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0432\u0441\u0442\u0430\u0435\u0442, \u043e\u0431\u0440\u0430\u0437 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f:<\/p>\n<blockquote>\n<p>docker run testqvd<\/p>\n<p>Hello, qvd<\/p>\n<\/blockquote>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044e (\u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043a \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u0435), \u0447\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e-\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443, \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b \u0438\u0445 \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439.<\/p>\n<p>\u041e\u0442\u0434\u0430\u044e \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u043e\u043b\u043b\u0435\u0433\u0435, \u043d\u043e \u0443 \u043d\u0435\u0433\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f!<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<blockquote>\n<p>docker -v<\/p>\n<p>Docker version 20.10.7, build f0df350<\/p>\n<\/blockquote>\n<p>\u0423 \u043d\u0430\u0441 \u043e\u0431\u043e\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f docker \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442. \u0412 \u0447\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u0430? \u0412\u0435\u0434\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0438\u0437 Dockerfile \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0438\u0434\u0435\u0442 \u0432 \u043e\u0431\u0440\u0430\u0437\u0435 python:3.8-slim-buster, \u043e\u043d \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0443 \u043d\u0430\u0441. \u041d\u0430\u0434\u043e \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0433\u043b\u0443\u0431\u0436\u0435, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 pip<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043f\u043e\u0447\u0435\u043c\u0443 qvd \u043d\u0435 \u0441\u0442\u0430\u0432\u0438\u0442\u0441\u044f \u043d\u0430 Big Sur:<\/p>\n<blockquote>\n<p>pip install -vvv qvd<\/p>\n<\/blockquote>\n<p>\u042d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430, \u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e &#8212; \u00a0<em>none of the wheel&#8217;s tags (<\/em><strong><em>cp37-none-win_amd64<\/em><\/strong><em>) are compatible (run pip debug &#8212;verbose to show compatible tags)<\/em>, \u0442\u0430\u043a\u0438\u0445 \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0438 \u0441\u0440\u0435\u0434\u0438 \u043d\u0438\u0445 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e win \u0438 manylinux. <\/p>\n<p> \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c <\/p>\n<blockquote>\n<p>pip debug &#8212;verbose<\/p>\n<\/blockquote>\n<p>\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0442\u044d\u0433\u043e\u0432 pip. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 win \u0442\u0430\u043c, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0435\u0442, \u0430 \u0435\u0441\u0442\u044c py32-none-macosx_10_13_x86_64<em> (\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435).<\/em> \u0412\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u044e \u0441\u044e\u0434\u0430: <a href=\"https:\/\/github.com\/pypa\/manylinux\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/pypa\/manylinux<\/a><\/p>\n<p>\u0422\u044d\u0433\u0438 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043f\u043e \u0432\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c &#8212; \u0435\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 Big Sur. \u041e\u041a, \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043d\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u043e\u0431\u0440\u0430\u0437\u0430 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u041e\u0421 \u0438\u0437  \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435.<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0432 Dockerfile \u0441\u0442\u0440\u043e\u0447\u043a\u0443: <\/p>\n<pre><code>FROM python:3.8-slim-buster  RUN apt-get update &amp;&amp; apt-get install -y netcat  COPY . \/app WORKDIR \/app  RUN pip install --upgrade pip RUN pip debug --verbose > \/tmp\/pip.txt RUN pip install -r requirements.txt  CMD [\"python\", \"main.py\"]<\/code><\/pre>\n<p>\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<blockquote>\n<p>docker build -t testqvd:latest -o \/tmp\/buildlogs<\/p>\n<\/blockquote>\n<p> \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0444\u0430\u0439\u043b \/tmp\/buildlogs\/tmp\/pip.txt \u0441 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u0442\u044d\u0433\u043e\u0432 pip \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043c\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u0433\u0430. \u0418 \u043e\u043d\u0438 (\u0442\u044d\u0433\u0438) \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u043c\u0438, \u0443 \u043c\u0435\u043d\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, &#8212; <em>py38-none-manylinux_2_16_x86_64, <\/em>\u0443 \u043a\u043e\u043b\u043b\u0435\u0433\u0438 <em>py37-none-manylinux_2_28_aarch64<\/em><\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 M1  (\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e) \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 Intel Core \u0438 \u043d\u0438\u043a\u0430\u043a\u0438\u043c\u0438 \u0445\u0438\u0442\u0440\u044b\u043c\u0438 docker &#8212; \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u043c\u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u042f \u043f\u043e\u043a\u0430 \u043f\u043e\u043e\u0441\u0442\u0435\u0440\u0435\u0433\u0443\u0441\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 M1 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043e\u0442\u0441\u043e\u0432\u0435\u0442\u0443\u044e.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/587318\/\"> https:\/\/habr.com\/ru\/articles\/587318\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-401228","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/401228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=401228"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/401228\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=401228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=401228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=401228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}