Giter VIP home page Giter VIP logo

play-with-docker.github.io's People

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

play-with-docker.github.io's Issues

Terminals scrolling problem (needs resizing)

There are some displaying problems with terminal scroll bars in some labs.
Example to reproduce the problem :

  • open https://training.play-with-docker.com/ops-s1-swarm-intro/ lab with Chrome or Firefox
  • execute the first command of the lab docker swarm init --advertise-addr $(hostname -i) in the upper terminal (the scroll bar doen not follow the output)
  • scroll down the first terminal and try to enter a character on the command line
    => the scroll bar goes back up and prevents to see what is typed

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 !

Terminals not resizing properly anymore.

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.

"docker container logs mydb" does not work

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.

can a LICENSE file be added?

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?

Tutorial not working without activating experimental features

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!

Section 2.1 URL links to training.play-with-docker.com

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?

Parts 2 & 3 Terminal

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?

Incomplete information in Docker Images Deeper Dive lab

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.

Add popup warning when refreshing the page

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.

We need a common landing page for play-with-{docker,moby,k8s}

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

  • PWD => lab, training, github, ...
  • PWM =>
  • PWK =>

Acessing MySQL image remotely

Hi there!

I am uploading a MySQL image and trying to access remotely, but to no avail. Has anyone succeeded in doing the same?

  1. docker pull mysql
  2. docker run -it --name sql -e MYSQL_DATABASE = sql -e MYSQL_ROOT_PASSWORD = root -p 3306: 3306 or 80 -d mysql

Best regards.

Docker images ls /graph/overlay2 - No such file or directory

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

Cannot copy selected text from the terminal

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:
Firefox context menu

This issue doesn't exist in chrome for me, and it works as expected.

Add a favicon

A favicon establishes branding as well as helps quickly find the desired tab when there are dozens of tabs open in a browser window.

Incorrect statement in "Doing More With Docker Images"

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:

  1. Specifies a base image to pull FROM - the alpine image we used in earlier labs.
  2. Then it RUNs two commands (apk update and apk add) inside that container which installs the Node.js server.
  3. Then we told it to COPY files from our working directory in to the container. The only file we have right now is our index.js.
  4. Next we specify the WORKDIR - the directory the container should use when it starts up
  5. And finally, we gave our container a command (CMD) to run when the container starts.

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.

Documentation Issue

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.

Very first command in the Docker for Beginners fails

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'.

docker node update - No such node: node2

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.

Docker volumes - no such file or directory

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/

"Click here to load the website" points to wrong URL

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.

is WebApps with Docker Flow Proxy still good?

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

Not working in firefox

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.

Call To Action?

@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?
image

Reduce the size of social network footer to gain more screen space

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

Docker swarm config files - command line does not appear

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.

Last image of Jekyll cannot run serve

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.

Trouble understanding swarm tutorial

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.

/bin/sh not found on docker volumes tutorial

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.

What is "docker container" ?

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

Render offsite tutorials from external Markdown

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.

  1. 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.

  2. 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

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.