Code Monkey home page Code Monkey logo

community's Introduction

Docker Community

Welcome to the Docker Community repo! This repo aims to centralize content (HOW-TOs, scripts, slides, etc) curated by the Docker Team for the Docker Community. The main objective is to help members of the Docker community who share similar interests to learn from & collaborate with each other during events.

Resources

The Play with Docker classroom brings you labs and tutorials that help you get hands-on experience using Docker. In this classroom you will find a mix labs and tutorials that will help Docker users, including SysAdmins, IT Pros, and Developers. There is a mix of hands-on tutorials right in the browser, instructions on setting up and using Docker in your own environment, and resources about best practices for developing and deploying your own applications.

If you want to contribute a lab, check out this GitHub repo and get started.

The Docker Blog is a great resource to find content! We post the latest Docker news including new releases and events like DockerCon there.

This is a public forum for users to discuss questions and explore current design patterns and best practices about Docker and related projects in the Docker Ecosystem. To participate, just log in with your Docker Hub account.

Get the latest Docker news straight to your inbox! This weekly newsletter highlights content from the community along with the latest Docker news.

Get all the info on the different Docker projects with our docs.

Check out our YouTube page for videos of recorded talks from DockerCon, webinars and other meetups.

Social Media

Follow us on Twitter, like Docker on Facebook and follow Docker on LinkedIn

community's People

Contributors

0l33l avatar akalipetis avatar anavillani avatar arun-gupta avatar bdwill avatar bettyjunod avatar boucher avatar crhntr avatar gesellix avatar hairyhenderson avatar iblancasa avatar jrburcio avatar karenbajza avatar kunalkushwaha avatar lisamcnicol avatar manomarks avatar mathiasrenner avatar nicolaka avatar so0k avatar stefanscherer avatar timdaman avatar vstoican avatar youben11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

community's Issues

Docker machines are not started in order

docker-machine start swarm-master swarm-node-01 swarm-node-02
Starting "swarm-node-02"...
Starting "swarm-master"...
Starting "swarm-node-01"...
(swarm-node-02) Check network to re-create if needed...
(swarm-node-02) Waiting for an IP...
Machine "swarm-node-02" was started.
Waiting for SSH to be available...
(swarm-master) Check network to re-create if needed...
(swarm-master) Waiting for an IP...
Machine "swarm-master" was started.
Waiting for SSH to be available...
(swarm-node-01) Check network to re-create if needed...
(swarm-node-01) Waiting for an IP...
Machine "swarm-node-01" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Detecting the provisioner...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.

Need to stop container

In the following instruction set in Chapter 4 (Run a Docker Container) an instruction should be added to stop container before proceeding.

If container isn't stopped, we would end up in a port conflict error:

docker: Error response from daemon: failed to create endpoint sharp_panini on network bridge: Bind for 0.0.0.0:8080 failed: port is already allocated.

Original instruction set:

Run Container with Specified Port

Lets stop the previously running container as:

docker stop docker ps | grep tomee | awk '{print $1}'
Restart the container as:

docker run -d -p 8080:8080 tomee
The format is -p hostPort:containerPort. This option maps container ports to host ports and allows other containers on our host to access them.

Now we’re ready to test http://dockerhost:8080 again. This works with the exposed port, as expected.

Add the step here: docker stopdocker ps | grep tomee | awk '{print $1}'``

add "value proposition" or "problem/solution" intro slide

At the start of the presentation it was stated (paraphrasing here) that:

Yes, there's currently a lot of hype around docker, nonetheless, it's believed that docker will be around for a long time because it solves a real problem.

Can you define the "real problem" succinctly in an intro slide? It may be worthwhile to add an intro slide that states the core issue and, in a line or two, explains how docker addresses / solves the core problem, which ends up being the docker "value prop" to an organization.

Thanks!

xml-fmt is not a command (curl http://192.168.99.100:8080/javaee-simple-sample/resources/persons | xml-fmt)

tomee $ curl http://192.168.99.100:8080/javaee-simple-sample/resources/persons | xml-fmt
-bash: xml-fmt: command not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 343 100 343 0 0 1321 0 --:--:-- --:--:-- --:--:-- 1324
(23) Failed writing body
tomee $ curl http://192.168.99.100:8080/javaee-simple-sample/resources/persons | xml
-bash: xml: command not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 343 100 343 0 0 38195 0 --:--:-- --:--:-- --:--:-- 42875
(23) Failed writing body

New Swarm Mode Presentations

The Swarm presentation on this repo is outdated. Is there any newer presentation that can be added on Docker Swarm? Something like the "What's new Docker 1.12" from DockerCon 2016?

Container linking comments should be removed as they no longer apply.

"Docker Compose applications can use “classic” container linking that is confined to a single host. Alternatively, it can use multi-host networking introduced in Docker 1.9."

From chapter 5, the above text is no longer applicable as networking/linking is taking care of by the docker networking layer in >= 1.10.

A brief explanation of the new linking mechanism would be good.

A brief section on how to control networking/linking would be nice.

Use sudo on linux VM

@arun-gupta
The docker-compose and docker commands need sudo to run on Ubuntu 15.10 (Wily Werewolf). This is should be noted in install instructions.

compose up error

hi mano

i got this

mervo@sharkbay:/docker-birthday/community/Docker-Birthday-3/example-voting-app$ docker-compose up
Unsupported config option for services service: 'worker'
mervo@sharkbay:
/docker-birthday/community/Docker-Birthday-3/example-voting-app$

Docker Error

Remove alert
|
Edit
|
Delete
|
Change type
Question
You cannot vote on your own post
0

Hi Team,

Please help me to resolve below issue

PS C:\Users\Administrator> docker version
Client:
Version: 1.12.0-dev
API version: 1.24
Go version: go1.5.3
Git commit: 2b97201
Built: Tue Apr 26 23:51:36 2016
OS/Arch: windows/amd64
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version: open //./pipe/docker_engin
e: The system cannot find the file specified.
PS C:\Users\Administrator> docker images
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json: open //./pipe/docker_e
ngine: The system cannot find the file specified.

Health checks and depends on

version: '2'
services:
mycouchbase:
container_name: "db"
image: arungupta/couchbase
ports:
- 8091:8091
- 8092:8092
- 8093:8093
- 11210:11210
mywildfly:
image: arungupta/wildfly-couchbase-javaee7
environment:
- COUCHBASE_URI=db
ports:
- 8080:8080

It would be nice to explain the depends-on feature and health checks. If these features are not yet ready for prime time, it would be nice to add an example of a script that would fill in the gaps for the airline example in chapter 5.

Fix the application URL for Swarm chapter

Change

curl http://$(docker-machine ip swarm-node-01):8080/couchbase-javaee/resources/airline

to

curl http://$(docker-machine ip swarm-node-01):8080/airlines/resources/airline

Readability issue in chapter 5

curl http://dockerhost:8080/airlines/resources/airline
[{"travel-sample":{"country":"United States","iata":"Q5","callsign":"MILE-AIR","name":"40-Mile Air","icao":"MLA","id":10,"type":"airline"}}, {"travel-sample":{"country":"United States","iata":"TQ","callsign":"TXW","name":"Texas Wings","icao":"TXW","id":10123,"type":"airline"}}, {"travel-sample":{"country":"United States","iata":"A1","callsign":"atifly","name":"Atifly","icao":"A1F","id":10226,"type":"airline"}}, {"travel-sample":{"country":"United Kingdom","iata":null,"callsign":null,"name":"Jc royal.britannica","icao":"JRB","id":10642,"type":"airline"}}, {"travel-sample":{"country":"United States","iata":"ZQ","callsign":"LOCAIR","name":"Locair","icao":"LOC","id":10748,"type":"airline"}}, {"travel-sample":{"country":"United States","iata":"K5","callsign":"SASQUATCH","name":"SeaPort Airlines","icao":"SQH","id":10765,"type":"airline"}}, {"travel-sample":{"country":"United States","iata":"KO","callsign":"ACE AIR","name":"Alaska Central Express","icao":"AER","id":109,"type":"airline"}}, {"travel-sample":{"country":"United Kingdom","iata":"5W","callsign":"FLYSTAR","name":"Astraeus","icao":"AEU","id":112,"type":"airline"}}, {"travel-sample":{"country":"France","iata":"UU","callsign":"REUNION","name":"Air Austral","icao":"REU","id":1191,"type":"airline"}}, {"travel-sample":{"country":"France","iata":"A5","callsign":"AIRLINAIR","name":"Airlinair","icao":"RLA","id":1203,"type":"airline"}}]

The above could confuse some people. It might be best to separate the command from the expected output.

Add create-cluster script to the Swarm chapter

#!/bin/bash
#set -x

# Docker Machine for Consul
docker-machine \
  create \
  -d virtualbox \
  consul-machine

# Start Consul
docker $(docker-machine config consul-machine) run -d --restart=always \
        -p "8500:8500" \
        -h "consul" \
        progrium/consul -server -bootstrap

# Docker Swarm master
docker-machine \
  create \
  -d virtualbox \
  --virtualbox-disk-size "5000" \
  --swarm \
  --swarm-master \
  --swarm-discovery="consul://$(docker-machine ip consul-machine):8500" \
  --engine-opt="cluster-store=consul://$(docker-machine ip consul-machine):8500" \
  --engine-opt="cluster-advertise=eth1:2376" \
  swarm-master

# Docker Swarm node-01
docker-machine \
  create \
  -d virtualbox \
  --virtualbox-disk-size "5000" \
  --swarm \
  --swarm-discovery="consul://$(docker-machine ip consul-machine):8500" \
  --engine-opt="cluster-store=consul://$(docker-machine ip consul-machine):8500" \
  --engine-opt="cluster-advertise=eth1:2376" \
  swarm-node-01

# Docker Swarm node-02
docker-machine \
  create \
  -d virtualbox \
  --virtualbox-disk-size "5000" \
  --swarm \
  --swarm-discovery="consul://$(docker-machine ip consul-machine):8500" \
  --engine-opt="cluster-store=consul://$(docker-machine ip consul-machine):8500" \
  --engine-opt="cluster-advertise=eth1:2376" \
  swarm-node-02

# Configure to use Docker Swarm cluster
eval "$(docker-machine env --swarm swarm-master)"

file .env with docker secret

Hello,

I put the passwords of an elastic stack in a ".env" file.

File .env:

ELASTIC_PASSWORD=elastic

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
env_file:

.env

When executing the stack, it works very well and the environment variables are updated in the stack. stack is ok.

Now when I put this ".env" file in secret docker the environment variables are not updated.

....
secrets:
elk_secret:
file: .env

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
secrets:

elk_secret
....
Is there a trick to be able to put the ".env" file in docker secret and have the stack environment variables updated.

docker version
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:17:14 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:15:24 2018
OS/Arch: linux/amd64
Experimental: false

docker-compose version
docker-compose version 1.21.2, build a133471
docker-py version: 3.3.0
CPython version: 3.6.5
OpenSSL version: OpenSSL 1.0.1t 3 May 2016

Best regard

Olivier

Unhelpful "Failed to reset password" on https://id.docker.com/change-password

While attempting to reset my password with Firefox 59.0.2 on Ubuntu 17.10 or Chromium 65.0.3325.181 on https://id.docker.com/change-password/... (link received via mail[1]) I get the feedback Failed to reset password:
screenshot-id docker com-2018-04-03-02-14-47

after pasting the password bottled barrier potholed faucet into both the password and the repeat field. If I enter 123 I see a validation message below the field telling me that the password needs to be at least 6 characters long which I don't see after pasting, so the problem might be have another reason. This reason should have been included into the error message.


[1] Plaintext mail which contain HTML code look quite unprofessional. I won't open more than one issue before I'm sure that this is the right place, though.

How to figure out container image content address remotely?

Since a while, container images can be addressed by their content using the registry/namespace/repository@digest syntax, where digest is usually of the form sha256:.... How can I learn this image content address remotely without pulling the image using docker pull ... and then running docker inspect ... | jq -r .[0].RepoDigests[0]?

The use-case is writing the FROM line of a Dockerfile, where I select the base image on e.g. Docker Hub or Quay.io. Neither of the two seems to be able to tell me the digest right away, so I would like to know the docker command which prints this or write a script to figure this out.

Vagrant File

We can have a Vagrant file. That would make the setup one step easy.

May be we can mark it as enhancement.

Stop containers. Possibly command typo?

In Stop Container section, the command given for stopping all containers is "docker stop $(docker ps -q)". That command didn't work for me. Did you mean -a or -aq?

Cant join community slack channel

I can't seem to join the community slack channel. Is there a way that I can get an invite from the docker community slack admin with my email?

HTTPS Client error on RHEL 7.5

Hi, I am running docker 17.03.2-ce on RHEL 7.5. I have set up a docker registry on another instance. When I try to pull docker images from that registry it gives an error of "Error response from daemon: Get https://my_domain:5000/v1/_ping: http: server gave HTTP response to HTTPS client".
I have also added a flag in “/usr/lib/systemd/system/docker.service” with ExecStart=/usr/bin/dockerd –insecure-registry docker-repo.example.com:5000. But it doesn't work for me. Can anyone help for the same?

Remove --virtualbox-disk-size "5000" flag in docker-machine create

docker-machine create -d virtualbox --virtualbox-disk-size "5000" --swarm --swarm-master --swarm-discovery="consul://$(docker-machine ip consul-machine):8500" --engine-opt="cluster-store=consul://$(docker-machine ip consul-machine):8500" --engine-opt="cluster-advertise=eth1:2376" swarm-master

Docker Slack community

Hii, @AlbaRoza i am trying to join the docker community and it is not working i saw in the comments that you are helping developers can you help me please.

Chapter 3 Newbie Tip

When I tried "docker run helloworld" the first time there was an error in my file. Should I stop/kill/remove the helloworld image? It might be a nice tip to add:

Problems with your image? Just get rid of it. Use the "docker xxx command"

Scale docker compose is causing Port Conflicts

Hi ,

Scaling docker container in docker compose having a port mapping is causing a port already in use error.

Error below docker-compose.exe scale mywildfly=2
The "mywildfly" service specifies a port on the host. If multiple containers for this service are created on a single host, the port will clash.
Creating and starting 2 ... error

ERROR: for 2 failed to create endpoint dockerfiles_mywildfly_2 on network dockerfiles_default: Bind for 0.0.0.0:8080 failed: port is already allocated

docker-compose.yml is

version: '2'
services:
mycouchbase:
container_name: "db"
image: arungupta/couchbase
ports:
- 8091:8091
- 8092:8092
- 8093:8093
- 11210:11210
mywildfly:
image: arungupta/wildfly-couchbase-javaee7
environment:
- COUCHBASE_URI=db
ports:
- 8080:8080

and the command to scale is : docker-compose.exe scale mywildfly=2.

@kirsid

Jar name is hardcoded in pom.xml

java -cp maven/helloworld-1.0-SNAPSHOT.jar org.examples.java.App is hardcoded (chapter 3).
When the version changes the jar will not be there.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.