Giter Site home page Giter Site logo

ajeetraina / docker101 Goto Github PK

View Code? Open in Web Editor NEW
215.0 33.0 140.0 18.07 MB

Visit https://dockerlabs.collabnix.com

Home Page: http://dockerlabs.collabnix.com

CSS 11.82% HTML 0.25% Shell 0.27% Ruby 8.21% JavaScript 14.09% Roff 0.22% Python 0.04% C# 0.03% Java 0.02% PHP 63.23% PowerShell 0.01% HCL 0.06% Dockerfile 0.06% SCSS 0.34% Slim 1.34% Jasmin 0.01%
kubernetes swarm docker

docker101's Introduction

Docker for You (DFY)

** THIS IS AN OLD REPOSITORY. Please refer DockerLabs if you want to get started with Docker] **

Are you new to Docker? Want to build your career in Container Technology?

Then Welcome ! You are at the right place.

This repository brings you tutorials that help you get hands-on experience using Docker. Here you will find a mix of labs and tutorials that will help you, no matter if you are a beginner, SysAdmin, IT Pro or Developer. Yes, you read it correct ! Its $0 learning platform. You don't need any infrastructure. Most of the tutorials runs on Play with Docker Platform. This is a free browser based learning platform for you. Docker tools like Docker Engine, Docker Compose & Docker Machine are already installed for you. All you need is to get started.

Getting Started with Docker

To get started with Docker, follow the below steps:

  • Create Dockerhub Account
  • Open Play with Docker Platform
  • Click on "Start"
  • This will open up an easy to understand PWD(Play with Docker) tool which displays instances on the left hand side while terminal at the right hand side
  • Click on "Create Instance" to create your first Linux instance

Getting Started with Docker Swarm

To get started with Docker Swarm, you can use "Play with Docker", shortly called PWD. It's free of cost and open for all. You get maximum of 5 instances of Linux system to play around with Docker.

  • Open Play with Docker Labs on your browser
  • Click on the icon near to Instance to choose 3 Managers & 2 Worker Nodes

My image

  • Wait for few seconds to bring up 5-Node Swarm Cluster

We recommend you start with one of our Beginners Guides, and then move to intermediate and expert level tutorials that cover most of the features of Docker. For a comprehensive approach to understanding Docker, I have categorized it as shown below:

Docker for Beginners

Docker for Intermediate

Docker for Advanced Users

A Bonus... Docker Swarm Visualizer

Swarm Visualizer is a fancy tool which visualized the Swarm Cluster setup. It displays containers running on each node in the form of visuals. If you are conducting Docker workshop, it's a perfect way to show your audience how the containers are placed under each node. Go..try it out..

Clone the Repository

git clone https://github.com/dockersamples/docker-swarm-visualizer
cd docker-swarm-visualizer
docker-compose up -d

My image

To run in a docker swarm:

$ docker service create \
  --name=viz \
  --publish=8080:8080/tcp \
  --constraint=node.role==manager \
  --mount=type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
  dockersamples/visualizer

Docker-Ready Solution for You

WordPress under Docker Swarm

ELK under Docker Swarm

Prometheus Stack under Docker Swarm

Apache Jmeter under Docker Swarm Mode

Voting App Example

Playing around with Photon OS

Playing around with MacVLAN

IPv6 & Docker Compose

Trying out Gitlab

Getting Started with Nginx

docker101's People

Contributors

ajeetraina avatar alkreddy avatar collabnix avatar dockerworxinc avatar klaudioz avatar rusrushal13 avatar shefalibisht00 avatar shendrekbharath 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

docker101's Issues

Begineer: docker build for nginx fails

Firstly, THANK YOU for taking the efforts to create the repo with such amazing docker examples.

Issue: With respect to the build command as mentioned in https://github.com/ajeetraina/docker101/blob/master/beginners/intro-to-dockerfile-003.md results in error

`**testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ ls
nginx1.Dockerfile nginx2.Dockerfile

testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ docker build -t testuser/mynginx .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/testuser/Desktop/docker-cert/docker101/beginners/nginx/Dockerfile: no such file or directory**
`

I was not really able to find the root cause of the issue as i could find examples over the net having ".Dockerfile" examples.

What did actually worked for me was:

`**testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$ docker build -t testuser/mynginx -f nginx1.Dockerfile .
Sending build context to Docker daemon 3.072kB
Step 1/2 : FROM ubuntu
^C

testuser@INPNRLT5487:~/Desktop/docker-cert/docker101/beginners/nginx$**`

Just in case if this helps:
$ docker --version Docker version 19.03.6, build 369ce74a3c

I was going to create a PR for the same but didn't have the access rights as its your repo hence creating an issue to let you guys know about it.

[Bug reporting] XSS vulnerabilty in wp_kses_bad_protocol in wp-includes/kses.php (CVE-2019-20041)

Hi

I found a known XSS vulnerability in the recent version of docker101.
In particular, the bug we report is a known bug by CVE-2019-20041.

wp_kses_bad_protocol in wp-includes/kses.php in WordPress before 5.3.1 mishandles the HTML5 colon named entity, allowing attackers to bypass input sanitization, as demonstrated by the javascript: substring.

Please check this line:

$string2 = preg_split( '/:|&#0*58;|&#x0*3a;/i', $string, 2 );

Thanks!

Unable to get LinuxKit running on Microsoft Azure Platform

Run az login and authenticate your Azure Account.

Ajeets-MacBook-Air:~ ajeetraina$ az ad sp create-for-rbac --name spname --password Oracle9ias
Retrying role assignment creation: 1/36
Retrying role assignment creation: 2/36
{
"appId": "aae5ce2a-1240-426f-b3f7-a3e8565bb70a",
"displayName": "spname",
"name": "http://spname",
"password": "Oracle9ias",
"tenant": "633df679-ee48-48ad-8841-543d1b723ae6"
}```

Role Assignment

{
  "id": "/subscriptions/43b263f8-40b0-4b20-be46-13355dc8c28b/providers/Microsoft.Authorization/roleAssignments/92f8de73-1bf4-4a7a-b6af-5485bb7d847f",
  "name": "92f8de73-1bf4-4a7a-b6af-5485bb7d847f",
  "properties": {
    "principalId": "ea7ca072-f4e0-4759-8288-583b83f3888a",
    "roleDefinitionId": "/subscriptions/43b263f8-40b0-4b20-be46-13355dc8c28b/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
    "scope": "/subscriptions/43b263f8-40b0-4b20-be46-13355dc8c28b"
  },
  "type": "Microsoft.Authorization/roleAssignments"
}```


```Ajeets-MacBook-Air:~ ajeetraina$ az role assignment list --assignee aae5ce2a-1240-426f-b3f7-a3e8565bb70a 
[
  {
    "id": "/subscriptions/43b263f8-40b0-4b20-be46-13355dc8c28b/providers/Microsoft.Authorization/roleAssignments/92f8de73-1bf4-4a7a-b6af-5485bb7d847f",
    "name": "92f8de73-1bf4-4a7a-b6af-5485bb7d847f",
    "properties": {
      "principalId": "ea7ca072-f4e0-4759-8288-583b83f3888a",
      "principalName": "http://spname",
      "roleDefinitionId": "/subscriptions/43b263f8-40b0-4b20-be46-13355dc8c28b/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
      "roleDefinitionName": "Reader",
      "scope": "/subscriptions/43b263f8-40b0-4b20-be46-13355dc8c28b"
    },
    "type": "Microsoft.Authorization/roleAssignments"
  }
]```




```Ajeets-MacBook-Air:~ ajeetraina$ az login --service-principal -u aae5ce2a-1240-426f-b3f7-a3e8565bb70a  --password Oracle9ias --tenant 633df679-ee48-48ad-8841-543d1b723ae6
[
  {
    "cloudName": "AzureCloud",
    "id": "43b263f8-40b0-4b20-be46-13355dc8c28b",
    "isDefault": true,
    "name": "Free Trial",
    "state": "Enabled",
    "tenantId": "633df679-ee48-48ad-8841-543d1b723ae6",
    "user": {
      "name": "aae5ce2a-1240-426f-b3f7-a3e8565bb70a",
      "type": "servicePrincipal"
    }
  }
]```

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.