Docker Community All Hands Recap

We are sharing a recap of last week’s second quarterly Community All-Hands and the feedback we got from the community.

The Community All-Hands deepen our engagement with the Docker community and bring users, contributors and staff together on a quarterly basis. It is an opportunity for the community to get updates on what we’re working on and align on priorities for the year. It also provides a live forum for the community to engage and ask questions directly to Docker’s executive and community leadership. 

In December, we wrote that we wanted to build on the feedback we got after our first Community All-Hands and that we are committed to providing more content, a longer format and make it more interactive for attendees. To this end, we chose to extend the event by 2 hours and include parallel tracks with more speakers and a mix of live keynotes, workshops, lightning talks and regional content. We also picked the Tulu.la video platform to host the event, leveraging their awesome innovative features (eg. integrated chat, multi-casting, WebRTC).

These improvements paid off in an impressive way: we had close to 3,000 unique attendees (including Youtube-live stream viewers), almost tripling the number of attendees who tuned in last time. The turnout was exceptional and the engagement from the community throughout the event was phenomenal.

The feedback we got for this second edition was also very positive, with survey results showing that:

92% of (187 respondents) gave 4 stars or more to the event.93% were likely to recommend the event to a friend.

75% thought the length of the event was just right.65% saying they’d like for us to use the same video platform next time.

Perhaps the two most recurrent suggestions for improvement we’ve received is that next time, in the run-up to the event, we should communicate the final schedule far more in advance and we should also provide a short 1-minute video tutorial to attendees on how to navigate the video platform. Clearly, it took a bit of time for some people to get used to the live multi-streaming of the event. 

I’ll close by saying a huge THANK YOU to all the speakers, to the Tulula team and to all those who attended the event. Community events are a key pillar of our community-building strategy and this All-Hands was an epic experience. We look forward to continuing to improve this Community-All Hands experiment and we will always push for more participation and engagement from the community.

 If you missed the event, worry not, we made sure to record everything: 

Keynotes + Q&AWorkshopsLightning TalksLive Panel in SpanishDemo in FrenchDemos in Portuguese
The post Docker Community All Hands Recap appeared first on Docker Blog.
Quelle: https://blog.docker.com/feed/

Docker and CNCF Join Forces for “Container Garage” Event Series

At Docker, we’re constantly trying to engage and connect with developer communities around the world to explore ways we can cross pollinate ideas, share, and learn from each other. Today, we’re thrilled to announce that Docker and the CNCF are joining forces to run a community-led event series called “Container Garage”, covering all things containers and focusing on a particular theme each time (eg. “runtime”, “images”, “security” etc…). The aim of the event is to engage our respective communities and foster closer collaboration.

To this end Docker Captains and CNCF Ambassadors are taking the lead with the planning and execution of the event, working in lock-step to curate excellent content and recruit amazing speakers for engaging talks, demos, and live panels.

The kick-off event will be on Thursday April 1st around the theme of container runtimes. The agenda is structured as follows: 

2pm – 4pm CET : Talks & Demos

4pm – 4:15 CET : Break

4:15pm – 5pm CET : Live panel discussion

5pm – 5:15 : Break

5pm – 7pm CET : Talks & Demos 

Again, the first event will be held on April 1st on the topic of container runtimes.

You can register for free and see the final agenda on the Container Garage event page. . 

If you have any questions, please don’t hesitate to ping @idvoretskyi (CNCF Slack) or @williamq (Docker Community Slack). 
The post Docker and CNCF Join Forces for “Container Garage” Event Series appeared first on Docker Blog.
Quelle: https://blog.docker.com/feed/

Docker Series B: More Fuel To Help Dev Teams Get Ship Done

Today we’re excited and humbled to announce Docker’s Series B raise of $23 million to accelerate our mission of delivering tools development teams love to quickly take their ideas from code to cloud. The round was led by Tribe Capital with participation from our existing investors, Benchmark and Insight Partners. Arjun Sethi, Tribe co-founder and partner, will join the Docker board. 

This would not have been possible without the Docker team: Thank you for giving each other your best, every day, despite the disruptions of the refocusing, the pandemic, the overnight switch to work-from-home, and so much more. We also thank our developer community of users, contributors, customers, partners, and Docker Captains – your enthusiastic engagement throughout this past year was invaluable.

Hit Refresh

Tribe sees in Docker what we saw in November 2019 when we refocused the company: the opportunity to build on the bottoms-up developer love of the Docker experience and provide a collaborative app development platform for development teams to accelerate getting their ideas from code to cloud. And that’s just what we did.

Key inputs to Tribe’s investment decision were our results this last year, which included attracting 80,000 developer participants to DockerCon 2020, adding 1.8 million new registered developers for a total of more than 7.3 million, and growing our annual recurring revenue (ARR) 170% year-over-year. From their own “Magic 8 Ball” analysis of Docker, Tribe concluded that Docker has “a brand halo with a peer set you can count on one hand among developers. Such an asset is rarely and hard-earned. By doubling down on what earned that place in developers’ hearts, Docker seeks to further entrench and evangelize that brand.” It’s an opportunity to create an “N-of-1” company, like Tribe portfolio companies Carta and Slack. 

The Road Ahead

Financings are milestones in company-building, not the destination. This raise will accelerate our build-out of our collaborative app development platform for development teams, so they can spend more time building and sharing applications that impact their organizations. Specifically:

Collaboration. The complexity of microservices-based app development and the new “virtual-first” nature of development teams increases friction when collaborating, which in turn slows shipping. To address this, we’re focusing on helping team members easily and quickly share with each other their in-process work, get better visibility into colleagues’ output and pipeline state, and benefit from the intermediate build and task results of others.

Content. Microservice’s modularity, the ability for development teams to compose their app using a mix of custom code they write with standard components, like databases and base images, can significantly compress the time it takes to get an app working. Of course, any development team using third-party components must trust its software supply chain. This is the root of the popularity of Docker Official Images and Docker Verified Publisher images as well as of our integrated secure supply chain tools with Snyk and JFrog. With this raise, you’ll see us expand the breadth and depth of content from both open source projects and ISVs as well as deliver additional tools to help development teams increase software supply chain confidence, security, and visibility.

Ecosystem. Docker already simplifies app development for teams while providing them choice. Whether interoperability with popular container orchestrators (eg, Kubernetes, AWS ECS, Azure ACI, Swarm), 100% compatibility with the major container runtimes (e.g., Docker Engine, containerd), or simultaneous builds of multi-architecture apps (e.g,. x86, ARM), Docker does so without any additional burden on the development team. To enable teams to continue to benefit from partner innovations throughout the container ecosystem look for us to continue to drive open standards together with ecosystem partners (e.g., OCI, Compose spec, Notary v2). In addition, we will deliver more APIs and SDKs to enable development teams and partners to integrate their tools much more quickly and easily.

You can see in the above our continued focus on helping development teams by simplifying app development complexities while expanding choice, which enables them to get their ideas from code to cloud as quickly as possible. In parallel, we remain committed to growing a sustainable business that continues to provide a 100% free experience for developers while meeting the demands of professional development teams with additional subscription services. Doing so allows us to scale the Docker experience to the next 10 million developers to make our ecosystem that much stronger.

Join Us!

We couldn’t be more excited to continue our journey and double-down on the successes of the past year. As always, you – the Docker developer community – play a critical role in defining and contributing to our direction, and we invite you to join us, whether it’s participating in DockerCon 2021, contributing to the Docker product roadmap, becoming a Docker Verified Publisher, or simply trying Docker for free.

Let’s together go and get ship done!
The post Docker Series B: More Fuel To Help Dev Teams Get Ship Done appeared first on Docker Blog.
Quelle: https://blog.docker.com/feed/

Docker Compose: From Local to Amazon ECS

By using cloud platforms, we can take advantage of different resource configurations and compute capacities. However, deploying containerized applications on cloud platforms is proving to be quite challenging, especially for new users who have no expertise on how to use that platform. As each platform may provide specific APIs, orchestrating the deployment of a containerized application can become a hassle.

Docker Compose is a very popular tool used to manage containerized applications deployed on Docker hosts. Its popularity is maybe due to the simplicity on how to define an application and its components in a Compose file and the compact commands to manage its deployment.

Since cloud platforms for containers have emerged, being able to deploy a Compose application on them is a most-wanted feature by many developers that use Docker Compose for their local development.

In this blog post, we discuss how to use Docker Compose to deploy containerized applications to Amazon ECS. We aim to show how the transition from deploying to a local Docker environment to deploying to Amazon ECS is effortless, the application being managed in the same way for both environments.

Requirements

In order to exercise the examples in this blogpost, the following tools need to be installed locally:

Windows and MacOS: install Docker DesktopLinux: install Docker Engine and Compose CLITo deploy to Amazon ECS: an AWS account

For deploying a Compose file to Amazon ECS, we rely on the new Docker Compose implementation embedded into the Docker CLI binary. Therefore, we are going to run docker compose commands instead of docker-compose. For local deployments, both implementations of Docker Compose should work. If you find a missing feature that you use, report it on the issue tracker.

Throughout this blogpost, we discuss how to:

Build and ship a Compose Application. We exercise how to run an application defined in a Compose file locally and how to build and ship its images to Docker Hub to make them accessible from anywhere.Create an ECS context to target Amazon ECS.   Run the Compose application on Amazon ECS. 

Build and Ship a Compose application

Let us take an example application with the following structure:

$ tree myproject/myproject/├── backend│   ├── Dockerfile│   ├── main.py│   └── requirements.txt├── compose.yaml└── frontend    ├── Dockerfile    └── nginx.conf2 directories, 6 files

The content of the files can be found here. The Compose file define only 2 services as follows:

$ cat compose.yamlservices:frontend:  build: frontend  ports:    – 80:80  depends_on:    – backendbackend:  build: backend

Deploying this file locally on a Docker engine is quite straightforward:

$ docker compose up -d[+] Running 3/3⠿ Network “myproject_default”     Created                     0.5s⠿ Container myproject_backend_1   Started                     0.7s⠿ Container myproject_frontend_1  Started                     1.4s

Check the application is running locally:

$ docker psCONTAINER ID   IMAGE                COMMAND                    CREATED         STATUS         PORTS                NAMESeec2dd88fd67   myproject_frontend   “/docker-entrypoint….”   4 seconds ago   Up 3 seconds   0.0.0.0:80->80/tcp   myproject_frontend_12c64e62b933b   myproject_backend    “python3 /app/main.py”     4 seconds ago   Up 3 seconds                        myproject_backend_1

Query the frontend:

$ curl localhost:80          ##         .    ## ## ##        ==## ## ## ## ##    ===/”””””””””””””””””___/ ==={                       /  ===-______ O           __/            __/  ___________/Hello from Docker!

To remove the application:

$ docker compose down[+] Running 3/3⠿ Container myproject_frontend_1  Removed                                                 0.5s⠿ Container myproject_backend_1   Removed                                                10.3s⠿ Network “myproject_default”     Removed                                                 0.4s

In order to deploy this application on ECS, we need to have the images for the application frontend and backend stored in a public image registry such as Docker Hub. This enables the images to be pulled from anywhere.

To upload the images to Docker Hub, we can set the image names in the compose file as follows:

$ cat compose.yamlservices:frontend:  image: myhubuser/starter-front  build: frontend  ports:    – 80:80  depends_on:    – backendbackend:  image: myhubuser/starter-back  build: backend

Build the images with Docker Compose:

$ docker compose build[+] Building 1.2s (16/16) FINISHED                                                                                                                                 => [myhubuser/starter-front internal] load build definition from Dockerfile            0.0s=> => transferring dockerfile: 31B                                                     0.0s=> [myhubuser/starter-back internal] load build definition from Dockerfile 0.0s…

In the build output we can notice the image has been named and tagged according to the image field from the Compose file.

Before pushing the images to Docker Hub, check to be logged in:

$ docker login…Login Succeeded

Push the images:

$ docker compose push[+] Running 0/16⠧ Pushing Pushing frontend: f009a503aca1 Pushing              [===========================================…                                        2.7s…

The images should be stored now in Docker Hub.

Create an ECS Docker Context

To make Docker Compose target the Amazon ECS platform, we need first to create a Docker context of the ECS type. A docker context is a mechanism that allows redirecting commands to different Docker hosts or cloud platforms. 

We assume at this point that we have AWS credentials set up in the local environment for authenticating with the ECS platform. 

To create an ECS context run the following command:

$ docker context create ecs myecscontext? Create a Docker context using:  [Use arrows to move, type to filter]  An existing AWS profile  AWS secret and token credentials> AWS environment variables

Based on the familiarity with the AWS credentials setup and the AWS tools use, we are prompted to choose between 3 context setups. To skip  the details of  AWS credential setup, we choose the option of using environment variables.

$ docker context create ecs myecscontext? Create a Docker context using: AWS environment variablesSuccessfully created ecs context “myecscontext”

This requires to have the AWS_ACCESS_KEY and AWS_SECRET_KEY set in the local environment when running Docker commands that target Amazon ECS.

The current context in use is marked by  * in the output of context listing:

$ docker context lsNAME                TYPE      DESCRIPTION                                   DOCKER ENDPOINT       default *           moby      Current DOCKER_HOST based configuration       unix:///var/run/docker.sockmyecscontext        ecs       credentials read from environment                                                           

To make all subsequent commands target Amazon ECS, make the newly created ECS context the one in use by running:

$ docker context use myecscontextmyecscontext$ docker context lsNAME                TYPE         DESCRIPTION                               DOCKER ENDPOINT              default             moby         Current DOCKER_HOST based configuration   unix:///var/run/docker.sockmyecscontext *      ecs          credentials read from environment                                                             

 Run the Compose application on Amazon ECS

An alternative to having it as the context in use is to set the context flag for all commands targeting ECS.

WARNING: Check in advance the cost that the ECS deployment may incur for 2 ECS services, load balancing (ALB), cloud map (DNS resolution) etc. 

For the following commands, we keep ECS context as the current context in use. Before running commands on ECS, make sure the Amazon account credentials grant access to manage resources for the application as detailed in the documentation.

 We can now run a command to check we can successfully access ECS.

$ AWS_ACCESS_KEY=”*****” AWS_SECRET_KEY=”******” docker compose lsNAME                                STATUS               

Export the AWS credentials to avoid setting them for every command.

$ export AWS_ACCESS_KEY=”*****”$ export AWS_SECRET_KEY=”******”

The deploy the sample application to ECS, we can run the same command as in the local deployment:

$ docker compose upWARNING services.build: unsupported attribute       WARNING services.build: unsupported attribute       [+] Running 18/18⠿ myproject                      CreateComplete                                     206.0s⠿ FrontendTCP80TargetGroup       CreateComplete                                       0.0s⠿ CloudMap                       CreateComplete                                      46.0s⠿ FrontendTaskExecutionRole      CreateComplete                                      19.0s⠿ Cluster                        CreateComplete                                       5.0s⠿ DefaultNetwork                 CreateComplete                                       5.0s⠿ BackendTaskExecutionRole       CreateComplete                                      19.0s⠿ LogGroup                       CreateComplete                                       1.0s⠿ LoadBalancer                   CreateComplete                                     122.0s⠿ Default80Ingress               CreateComplete                                       1.0s⠿ DefaultNetworkIngress          CreateComplete                                       0.0s⠿ BackendTaskDefinition          CreateComplete                                       2.0s⠿ FrontendTaskDefinition         CreateComplete                                       3.0s⠿ FrontendServiceDiscoveryEntry  CreateComplete                                       1.0s⠿ BackendServiceDiscoveryEntry   CreateComplete                                       2.0s⠿ BackendService                 CreateComplete                                      65.0s⠿ FrontendTCP80Listener          CreateComplete                                       3.0s⠿ FrontendService                CreateComplete                                      66.0s

Docker Compose converts the Compose file to a CloudFormation template defining a set of AWS resources. Details on the resource mapping can be found in the documentation. To review the CloudFormation template generated, we can run the command:

$ docker compose convertWARNING services.build: unsupported attribute       WARNING services.build: unsupported attribute       AWSTemplateFormatVersion: 2010-09-09Resources:  BackendService:    Properties:      Cluster:        Fn::GetAtt:        – Cluster        – Arn      DeploymentConfiguration:        MaximumPercent: 200        MinimumHealthyPercent: 100…

To check the state of the services, we can run the command:

$ docker compose psNAME                                              SERVICE             STATUS              PORTStask/myproject/8c142dea1282499c83050b4d3e689566   backend             Running            task/myproject/a608f6df616e4345b92a3d596991652d   frontend            Running             mypro-LoadB-1ROWIHLNOG5RZ-1172432386.eu-west-3.elb.amazonaws.com:80->80/http

Similarly to the local run, we can query the frontend of the application:

$ curl mypro-LoadB-1ROWIHLNOG5RZ-1172432386.eu-west-3.elb.amazonaws.com:80          ##         .    ## ## ##        ==## ## ## ## ##    ===/”””””””””””””””””___/ ==={                       /  ===-______ O           __/            __/  ___________/Hello from Docker!

We can retrieve logs from the ECS containers by running the compose logs command:

$ docker compose logsbackend  |  * Serving Flask app “main” (lazy loading)backend  |  * Environment: productionbackend  |    WARNING: This is a development server. Do not use it in a production deployment.backend  |    Use a production WSGI server instead….frontend  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.shfrontend  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.shfrontend  | /docker-entrypoint.sh: Configuration complete; ready for start upfrontend  | 172.31.22.98 – – [02/Mar/2021:08:35:27 +0000] “GET / HTTP/1.1″ 200 212 “-” “ELB-HealthChecker/2.0″ “-“backend   | 172.31.0.11 – – [02/Mar/2021 08:35:27] “GET / HTTP/1.0″ 200 -backend   | 172.31.0.11 – – [02/Mar/2021 08:35:57] “GET / HTTP/1.0″ 200 -frontend  | 172.31.22.98 – – [02/Mar/2021:08:35:57 +0000] “GET / HTTP/1.1″ 200 212 “-” “curl/7.75.0″ “94.239.119.152”frontend  | 172.31.22.98 – – [02/Mar/2021:08:35:57 +0000] “GET / HTTP/1.1″ 200 212 “-” “ELB-HealthChecker/2.0″ “-”

To terminate the Compose application and release AWS resources, run:

$ docker compose down[+] Running 2/4⠴ myproject              DeleteInProgress User Initiated                                        8.5s⠿ DefaultNetworkIngress  DeleteComplete                                                         1.0s⠿ Default80Ingress       DeleteComplete                                                         1.0s⠴ FrontendService        DeleteInProgress                                                       7.5s…

The Docker documentation provides several examples of Compose files, supported features, details on how to deploy and how to update a Compose application running in ECS, etc.

The following features are discussed in detail:

use of private imagesservice discoveryvolumes and secrets definitionAWS-specific service properties for auto-scaling, IAM roles and load balancinguse of existing AWS resources

Summary

We have covered the transition from local deployment of a Compose application to the deployment on Amazon ECS. We have used a minimal generic example for demonstrating how to use the Docker Compose cloud-capability. For a better understanding on how to update the Compose file and use specific AWS features, the documentation provides much more details.

Resources:

Docker Compose embedded in the Docker CLIhttps://github.com/docker/compose-cli/blob/main/INSTALL.mdCompose to ECS support https://docs.docker.com/cloud/ecs-integration/ECS-specific Compose examples:https://docs.docker.com/cloud/ecs-compose-examples/Deploying Docker containers to ECS:https://docs.docker.com/cloud/ecs-integration/Sample used to demonstrate Compose commands:https://github.com/aiordache/demos/tree/master/ecsblog-demo
The post Docker Compose: From Local to Amazon ECS appeared first on Docker Blog.
Quelle: https://blog.docker.com/feed/

Kubernetes: what are Endpoints

rtfm.co.ua – Usually, we don’t see Endpoints objects when using Kubernetes Services, as they are working under the hood, similarly to ReplicaSets which are “hidden” behind Kubernetes Deployments. So, Service is a…
Quelle: news.kubernauts.io