play-with-docker / play-with-docker.github.io Goto Github PK
View Code? Open in Web Editor NEWPlay with docker class-room repo
License: Apache License 2.0
Play with docker class-room repo
License: Apache License 2.0
@ManoMarks from this page ...
In the "Docker Orchestration Lab" located here https://training.play-with-docker.com/orchestration-hol/ there is a typo in the main title :
Docker Orchstration Hands-on Lab
instead of
Docker Orchestration Hands-on Lab
Do I have to make a PR to correct it ?
Thank you
There are some displaying problems with terminal scroll bars in some labs.
Example to reproduce the problem :
docker swarm init --advertise-addr $(hostname -i)
in the upper terminal (the scroll bar doen not follow the output)It seems that resizing the page or moving the central vertical slide bar to change left-right proportion once makes the scrolling issue disappear.
OS : Ubuntu 16.04.4 LTS
Chrome version tested : Version 64.0.3282.186 (Build officiel) (64 bits)
Firefox version tested : 58.0.2 (64 bits)
Thank you !
There is a Typo is the link to Daniel's blog. installing Docker with DCS should be "DSC"
on page https://training.play-with-docker.com/windows-containers-setup/
The terminals which are being opened on the playground, are not resized properly anymore.
You can just see the last line of the prompt, which is not really convenient, especially with a lot of output.
In section 2.1, there'a link labeled "You should see your website running HERE", but "HERE" links to (eg) http://pwd10_0_20_3-8888.host3.labs.play-with-docker.com/webapps/ which gives me a 404. Remove the trailing "webapps/" and I'm able to open the static website (ie http://pwd10_0_20_3-8888.host3.labs.play-with-docker.com/).
@allamand Same issue like #26 with your tutorial here:
https://github.com/franela/franela.github.io/blob/master/_posts/2017-03-31-traefik-load-balancing.markdown
Hello! Thanks for a great learning resource!
I just tried "docker container logs mydb" and it did not work, it says "no such container: mydb"
However if I get the container id from "docker ps" and punch that into the "docker container logs xxx" command, it works.
On "Docker for Developers Stage 1" page Link :
Deploying a Multi-Service App in Docker Swarm Mode shows 404 page not found error
On http://training.play-with-docker.com/dev-stage1/
Deploying a Multi-Service App in Docker Swarm Mode is listed twice and link (http://training.play-with-docker.com/dev-stage1/swarm-stack-intro) is 404
This is awesome for setting up workshops, I'm wondering if the creators would be open to adding a license file so that other can use this site too?
Clicking on the "Share to LinkedIn" button generates a URL
https://www.linkedin.com/shareArticle?mini=true&url=&title=&summary=&source=
This tutorial requires using latest Docker Engine 17.04 requires experimental features to be activated:
# docker service logs -f SERVICE-ID
only supported on a Docker daemon with experimental features enabled
This is not mentioned in the tutorial, but should be. Maybe experimental features shouldn't be used in a tutorial at all.
All other tutorials I've done were great so far, thanks for your work!
Even issue #21 is/should be resolved, the link is pointing to the home site of the tutorial.
I then tried with
http://pwd10_0_7_3-8888.host3.labs.play-with-docker.com/
and got a 'Error forwarding request' message.
However
http://pwd10_0_7_3-8888.host2.labs.play-with-docker.com/
worked.
It seems that the link should be fixed again or am I doing something wrong?
Hello, At the following page: http://training.play-with-docker.com/linux-registry-part2/ the embedded terminal is not used as much, if ever. It didn't seem to be clear from the text as I instinctively clicked on the first code excerpt as it was the pattern for the previous tutorials, to receive the error bash: openssl: command not found
.
Do you think it would be a bad idea to add a sentence in the introduction text precising that?
The self-guided tutorial links (Docker registry for Linux Part 1 & 2) are broken. I'd submit a PR if I knew what the right links were... :(
Hi Guys
The Instances are named node1. The second instance should be named nodeX.
As you can see here, or other labs with more than one node.
http://training.play-with-docker.com/swarm-service-discovery/
In the Inspect Inspection
section, there's no explanation of what a Go template notation
is. For users not familiar with Go, this seems really abrupt. Need some more information as to what it is, how is it related to the json output that results from the previous cmd.
For reference, here's the particular lab.
If users refresh the page, the will lose all the work that they've done. Add something like labs.pwd.com has which warns about this before closing / refreshing the tab.
I'd opt to put a link from the play-with-docker.github.io landing page to the moby and k8s projects.
In any case I think it would be good to have one landing page with one easy to remember URL to access the various services
Hi there!
I am uploading a MySQL image and trying to access remotely, but to no avail. Has anyone succeeded in doing the same?
Best regards.
http://training.play-with-docker.com/docker-images/
I run the command as tutorial says:
We will now have a look inside the /graph/overlay2 folder where the image and container layers are stored.
ls /graph/overlay2
And get:
ls: /graph/overlay2: No such file or directory
As we do not have any images yet, there should not be anything in this folder.
Not a big deal, but it does not match what is told. As I understood folder should exist, just empty.
Ok, but later there is bigger deal, tutoria said to run:
docker image pull nginx
and then again
ls /graph/overlay2
and it says
we can see the following:
261fed39e3aca63326758681c96cad5bfe7eeeabafda23408bee0f5ae365d3fd
28f7998921ca5e4b28231b59b619394ba73571b5127a9c28cc9bacb3db706d2a
backingFsBlockDev
c1ae1be1c1c62dbaacf26bb9a5cde02e30d5364e06a437d0626f31c55af82a58
l
But I still see
ls: /graph/overlay2: No such file or directory
I am using Firefox 60.0b5 (64-bit) on Ubuntu 17.10.
I am not able to copy selected text in the terminal when using Firefox (However, I can paste text from the clipboard).
Using Ctrl+C is interpreted by the terminal as a SIGINT. Also, trying to use the copy option from the context menu is not possible as the option isn't available.
These are the available options in Firefox's context menu when I have text selected in the terminal:
This issue doesn't exist in chrome for me, and it works as expected.
A favicon establishes branding as well as helps quickly find the desired tab when there are dozens of tabs open in a browser window.
In Doing More With Docker Images, it says the following...
What just happened?
We created two files: our application code (index.js) is a simple bit of javascript code that prints out a message. And the Dockerfile is the instructions for Docker engine to create our custom container. This Dockerfile does the following:
The third bullet point claims that: "The only file we have right now is our index.js."
However, this is not correct because the Dockerfile
also exists in ./
so both files are actually copied into the /app
folder.
It states in networking lab (Step 4: Test the network) that after we ran two services and ping one from another there is 100% packet loss. The output of ping command is shown after words "Now, lets ping 10.0.0.3.".
I believe the output should be opposite, something like "5 packets transmitted, 5 received, 0% packet loss, time 3997ms".
At the end of the same lab swarm exit command printed twice:
Lets run docker swarm leave --force.
docker swarm leave --force
Lets also run docker swarm leave --force.
docker swarm leave --force
Security Lab Capabilities contains 404 link in a sentense:
By default, Docker drops all capabilities except those needed, using a whitelist approach.
Not the greatest look when starting off :)
[node1] (local) [email protected] ~
$ git clone https://github.com/dockersamples/linux_tweet_app
Cloning into 'linux_tweet_app'...
remote: Counting objects: 14, done.
remote: Total 14 (delta 0), reused 0 (delta 0), pack-reused 14
Unpacking objects: 100% (14/14), done.
[node1] (local) [email protected] ~
$ docker container run alpine hostname
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
docker: no matching manifest for linux/amd64 in the manifest list entries.
See 'docker run --help'.
From this - http://training.play-with-docker.com/swarm-mode-intro/
Updating nodes
You can also drain a particular node, that is remove all services from that node. The services will automatically be rescheduled on other nodes.docker node update --availability drain node2
I am getting error:
Error: No such node: node2
Plus for this tutorial it could be explained what service is, how it is diferent from container, what node is. Of course we can search ourselves in other resources, but this is begginers tutorial, it would be easier.
And trying to search 'docker node' - google gives pages about node.js which I assume is not the right thing.
http://training.play-with-docker.com/docker-volumes/
After doing this as tutorial says:
Try the below command, to see the contents of the /data folder:
ls /graph/overlay2/[YOUR_ID]/diff/data
Getting this:
ls /graph/overlay2/b74ce42d6c75a437734fbd99711b986c0860953f5244691bf508712d000fb9aa/diff/data
ls: /graph/overlay2/b74ce42d6c75a437734fbd99711b986c0860953f5244691bf508712d000fb9aa/diff/data: No such file or directory
Probably it should be like this:
$ ls /var/lib/docker/overlay2/b74ce42d6c75a437734fbd99711b986c0860953f5244691bf508712d000fb9aa/diff/data/
On step 7 off "beginner-linux" tutorial, there is this link "Click here to load the website" which supposedly points to the site "created" by the beginner, but instead it loads "https://training.play-with-docker.com"
which is the home page of PWD (obviously it works with the docker image running or not).
It's happening because firefox (53.0.2 (64-bit) for Windows7) translates "/" to the mentioned URL.
http://training.play-with-docker.com/swarm-config/, on the webpage it says:
In the Terminal it indicates:
[node1] (local) [email protected] ~
$ docker --version
Docker version 17.05.0-ce, build 89658be
Hey @allamand, we're doing a periodic audit of content on training.play-with-docker.com. This lab:
https://training.play-with-docker.com/docker-flow-proxy/
I've gone through it and have a few questions:
The final step of the lab doesn't seem to work, running the visualizer, do you get the same result?
Is this still a good lab for us to have in the Community section?
You use a voting app repo that comes from your account, do you think you could use the one from the dockersamples
org instead?
@vfarcic cc'd because it's his original Flow Proxy
I'm using FF 55 in Linux. When I try a tutorial it says "try to resize window", but I cannot grab the middle bar to movie it. Also resizing the browser window does nothing.
The capcha never shows.
Chrome works fine.
@ManoMarks as far as the user's next steps after they complete the PWD training, what would be most useful for us to recommend, eg, "Download Docker for Mac/Windows" or "Create a Docker ID" or something else?
There is a broken link on this page http://training.play-with-docker.com/docker-flow-proxy/.
...
In this course, we will leverage the power of Docker Swarm Mode, released with Docker 1.13, and the
great features of vfarcic **[Docker Flow Proxy](http://proxy.dockerflow.com/swarm-mode-stack/**
...
The fix is pretty simple. Just need to add a ')' character to the end of the link.
In orchestration labs, one needs as much screen space as he/she can get. the current PWD footer seems to be quite wide, if there is either a toggle or reduce its size not to stand in the way would be better. the file responsible could be play-with-docker.github.io/_includes/footer.html
Only shows message "If the commandline doesn't appear in the terminal, make sure popups are enabled or try resizing the browser window."
Tried resizing window. Probably popups are enabled because command line works in other tutorial pages.
http://training.play-with-docker.com/node-sql-server-docker
From the Grafana icon, click Dashboards… Import and load the JSON dashboard file from v5 /dashboard.json. Select the Prometheus data store.
https://i.gyazo.com/1f3458f0937755180136eed5553a0293.png
I clicked import, and the button becomes 're-import' and thats it. Does not show graph.
I followed the steps in
http://training.play-with-docker.com/java-debugging-intellij/#
The quiz suggests container restart is not required for code change to work.
However while following the tutorial, I had to restart the container for the code change to work.
I was afraid that opening the link in the tutorial would navigate the browser away from the current page, so I used the middle mouse button to open it in a new tab, but that doesn't show the desired result.
Normal click does show it correctly.
When running jekyll serve using the latest jekyll/jekyll image, I have the following error:
$ docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll -it -p 4000:4000 jekyll/jekyll jekyll serve
fetch http://mirror.envygeeks.io/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://mirror.envygeeks.io/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
fetch http://mirror.envygeeks.io/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://mirror.envygeeks.io/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://mirror.envygeeks.io/alpine/edge/main/x86_64/APKINDEX.tar.gz
v3.5.2-81-gf4d50b1370 [http://mirror.envygeeks.io/alpine/v3.5/main]
v3.5.2-81-gf4d50b1370 [http://mirror.envygeeks.io/alpine/v3.5/community]
v3.6.0_rc3-11-ge8bec87892 [http://mirror.envygeeks.io/alpine/edge/community]
v3.6.0_rc3-4-g4e87f352c9 [http://mirror.envygeeks.io/alpine/edge/testing]
v3.6.0_rc3-12-g6510cbf1b8 [http://mirror.envygeeks.io/alpine/edge/main]
OK: 18496 distinct packages available
OK: 256 MiB in 73 packages
fatal: 'jekyll serve -H 0.0.0.0' could not be found. You may need to install the jekyll-serve -H 0.0.0.0 gem or a related gem to be able to use this subcommand.
It's working fine with 3.2 though
docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll -it -p 4000:4000 jekyll/jekyll:3.2 jekyll serve
Unable to find image 'jekyll/jekyll:3.2' locally
3.2: Pulling from jekyll/jekyll
95523bb5fd43: Pull complete
1b50010f7a0c: Pull complete
fc0f0109ca11: Pull complete
Digest: sha256:715a814a1010cac95bb96ef0d06b824ae0317b7b2add0674f815a0e579a86374
Status: Downloaded newer image for jekyll/jekyll:3.2
Configuration file: /srv/jekyll/_config.yml
Source: /srv/jekyll
Destination: /srv/jekyll/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 8.35 seconds.
Auto-regeneration: enabled for '/srv/jekyll'
Configuration file: /srv/jekyll/_config.yml
Server address: http://0.0.0.0:4000/
Server running... press ctrl-c to stop.
http://training.play-with-docker.com/swarm-stack-intro/
This tutorial right here, the first command is docker swarm init --advertise-addr $(hostname -i)
which gives an error static that
sethostname: Use the Network Control Panel Applet to set hostname. hostname -s is not support. flag needs and argument: --advertise-addr See'docker swarm init--help'.
I truly have no idea what the Network Control Panel Applet is. I was able to run docker swarm init
which seems to create only 1 node not two like the tutorial says should be happening so I'm trying to figure out what else I can do here but the above command needs a little more elaboration in a tutorial.
Also, I have never gotten the "in browser" terminal to work on any browser that I've used so far. I'm using my own terminal.
Hi there !
Following this tutorial , I ran the docker container run --name c2 -ti img1
command, that yield the following:
$ docker container run --name c2 -ti img1
/bin/sh: [/bin/sh]: not found
Therefore the container is stopped and we can't continue.
In the lab called "First Alpine Linux Container" located here https://training.play-with-docker.com/ops-s1-hello/ the image "Hello world explainer" is missing because the following image link is broken :
https://training.play-with-docker.com/images/ops-basics-hello-world.png
I think it has to be replaces by :
https://training.play-with-docker.com/images/ops-basics-hello-world.svg
Hello,
What's the deal with "docker container" ? All the examples and tutorials I had tried up to this point said to use "docker run ..." or "docker exec ..." to run commands in containers; but play-with-docker says to use "docker container".
I tried "docker help" and it did not list "container" as an option.
How come?
Thanks!
Aleksey
Not sure which repo to file this one under...
I would like a way to showcase my personal project hosted on github by using PWD.
For example I would like the split screen with 2 terminals on the right like this http://training.play-with-docker.com/swarm-mode-intro/.
Right now, I think there are 2 options for me to do this.
Use the JS SDK and figure out all the split screen HTML/CSS myself. Then host the HTML myself somewhere and point my users to it.
Create a markdown readme using the tutorial instructions, render it locally with Jekyll to HTML, and then pull out that HTML file and host it somewhere.
Both of these are not ideal because I have to customize and host the HTML myself.
A nice solution would be for me to host a markdown readme in my github repo from step 2 and have PWD render it with Jekyll on the fly and make it usable to users.
Perhaps something like this
http://training.play-with-docker.com/?tutorial=https://raw.githubusercontent.com/jonocodes/samplerepo/develop/pwd_tutorial.md
The PWD classroom for Multi-stage builds (https://training.play-with-docker.com/multi-stage/) does not work in any of my Browsers (FF, Chrome, Edge,...). After the successful login nothing happens.
In the debug console there is an issue with a POST request via XHR. The server returns with an status 405 for this request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.