Giter Club home page Giter Club logo

docker / labs Goto Github PK

View Code? Open in Web Editor NEW
11.5K 537.0 5.3K 216.45 MB

This is a collection of tutorials for learning how to use Docker with various tools. Contributions welcome.

License: Apache License 2.0

Python 0.01% PowerShell 0.09% C# 1.32% CSS 12.42% HTML 0.25% JavaScript 18.83% Batchfile 0.01% Shell 0.01% Java 0.16% PHP 66.32% Ruby 0.01% Gherkin 0.10% Dockerfile 0.11% TSQL 0.02% Less 0.01% ASP.NET 0.21% SCSS 0.12%
docker-tutorial lab swarm docker docker-compose swarm-mode orchestration windows dotnet java

labs's Introduction

Docker Tutorials and Labs

At this time we are not actively adding labs to this repository. Our focus is on training.play-with-docker.com where new lab and workshop oriented content is being added. We welcome fixes to existing content. For any new content you wish to contribute, please use this repository:https://github.com/play-with-docker/play-with-docker.github.io.

This repo contains Docker labs and tutorials authored both by Docker, and by members of the community. We welcome contributions and want to grow the repo.

Docker tutorials:

Community tutorials

Contributing

We want to see this repo grow, so if you have a tutorial to submit, or contributions to existing tutorials, please see this guide:

Guide to submitting your own tutorial

labs's People

Contributors

akrfjmt avatar alexellis avatar antoinega avatar arun-gupta avatar chanezon avatar deborah-digges avatar dependabot[bot] avatar emecas avatar fabianenardon avatar friism avatar jdleesmiller avatar jodumont avatar justincormack avatar letientai299 avatar londoncalling avatar lucj avatar lukassup avatar manomarks avatar mikegcoleman avatar mohan08p avatar nigelpoulton avatar paulsandoz avatar pistulls avatar riyazdf avatar royeectu avatar sbstnbr avatar sixeyed avatar spara avatar stefanscherer avatar timothystone 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

labs's Issues

How to get docker inside docker working

Hello,

i have a question if i can install docker inside docker. I have tried, but all i get is this error:
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.25/containers/json: open //./pipe/docker_engine: The system cannot find the file specified.

here is my Dockerfile:


FROM windows-java:jre1.8.0_91
EXPOSE 3500 3500

SHELL ["powershell"]
ARG BASE_URL
ARG SECRET

ADD script.ps1 C:/
RUN md ~/.ssh
ADD config C:/
ADD id_rsa C:/
ADD config C:/Users/ContainerAdministrator/.ssh
ADD id_rsa C:/Users/ContainerAdministrator/.ssh

RUN Set-Item -path env:PATH -value ($env:PATH + ';C:\Program Files\Docker')
RUN Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
RUN Install-WindowsFeature hyper-v
RUN Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
RUN Install-Package -Name docker -ProviderName DockerMsftProvider -Force

RUN (New-Object System.Net.WebClient).DownloadFile('{0}/jnlpJars/slave.jar' -f $env:BASE_URL, 'slave.jar') ;

ENTRYPOINT ["C:\Java\jre1.8.0_91\bin\java.exe", "-jar", ".\slave.jar"]

What I'm trying to do is to have this image connected to jenkins and then would jenkis restart inside images (so docker inside docker) after change in git.

Thanks!

No overload for method 'UseInMemoryDatabase' takes 0 arguments

Which lab is it that you're having issues with?

https://github.com/docker/labs/blob/master/windows/windows-containers/MultiContainerApp.md

Description

A clean install of Windows Server 2016 in Azure, following the steps in the quickstart to add git and docker, then following lab notes to install Musicstore. Breaks on step 12/16, building the application, with error "No overload for method 'UseInMemoryDatabase' takes 0 arguments".

Describe the results you received:

Step 12/16 : RUN dotnet build --framework netcoreapp1.1 .\samples\MusicStore
---> Running in 059da701583a
Microsoft (R) Build Engine version 15.1.545.13942
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Users\ContainerAdministrator.nuget\packages\internal.aspnetcore.sdk\1.0.1-rc2-15191\build\Git.targets(15,5): warning
: Unable to determine active git branch. [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
C:\Users\ContainerAdministrator.nuget\packages\internal.aspnetcore.sdk\1.0.1-rc2-15191\build\Git.targets(32,5): warning
: Property 'CommitHash' was not set [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
StartupOpenIdConnect.cs(60,37): error CS1501: No overload for method 'UseInMemoryDatabase' takes 0 arguments [C:\MusicSt
ore\samples\MusicStore\MusicStore.csproj]
Startup.cs(42,29): error CS1501: No overload for method 'UseInMemoryDatabase' takes 0 arguments [C:\MusicStore\samples\M
usicStore\MusicStore.csproj]
ForTesting\Mocks\MicrosoftAccount\TestMicrosoftAccountEvents.cs(21,54): error CS0103: The name 'MicrosoftAccountHelper'
does not exist in the current context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\MicrosoftAccount\TestMicrosoftAccountEvents.cs(22,54): error CS0103: The name 'MicrosoftAccountHelper'
does not exist in the current context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\MicrosoftAccount\TestMicrosoftAccountEvents.cs(23,54): error CS0103: The name 'MicrosoftAccountHelper'
does not exist in the current context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\MicrosoftAccount\TestMicrosoftAccountEvents.cs(24,54): error CS0103: The name 'MicrosoftAccountHelper'
does not exist in the current context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\MicrosoftAccount\TestMicrosoftAccountEvents.cs(27,54): error CS0103: The name 'MicrosoftAccountHelper'
does not exist in the current context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Google\TestGoogleEvents.cs(22,67): error CS0117: 'GoogleHelper' does not contain a definition for 'GetI
d' [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Google\TestGoogleEvents.cs(23,67): error CS0117: 'GoogleHelper' does not contain a definition for 'GetF
amilyName' [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Google\TestGoogleEvents.cs(24,67): error CS0117: 'GoogleHelper' does not contain a definition for 'GetN
ame' [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Facebook\TestFacebookEvents.cs(20,54): error CS0103: The name 'FacebookHelper' does not exist in the cu
rrent context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Facebook\TestFacebookEvents.cs(21,54): error CS0103: The name 'FacebookHelper' does not exist in the cu
rrent context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Facebook\TestFacebookEvents.cs(22,54): error CS0103: The name 'FacebookHelper' does not exist in the cu
rrent context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Facebook\TestFacebookEvents.cs(23,54): error CS0103: The name 'FacebookHelper' does not exist in the cu
rrent context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\Facebook\TestFacebookEvents.cs(24,99): error CS0103: The name 'FacebookHelper' does not exist in the cu
rrent context [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\StartupOpenIdConnectTesting.cs(48,37): error CS1501: No overload for method 'UseInMemoryDatabase' takes
0 arguments [C:\MusicStore\samples\MusicStore\MusicStore.csproj]
ForTesting\Mocks\StartupSocialTesting.cs(53,37): error CS1501: No overload for method 'UseInMemoryDatabase' takes 0 argu
ments [C:\MusicStore\samples\MusicStore\MusicStore.csproj]

Build FAILED.

Describe the results you expected:

A successful build.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
 Version:      17.03.0-ee-1
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   9094a76
 Built:        Wed Mar  1 00:49:51 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.03.0-ee-1
 API version:  1.26 (minimum version 1.24)
 Go version:   go1.7.5
 Git commit:   9094a76
 Built:        Wed Mar  1 00:49:51 2017
 OS/Arch:      windows/amd64
 Experimental: false

Output of docker info:

Containers: 2
 Running: 0
 Paused: 0
 Stopped: 2
Images: 12
Server Version: 17.03.0-ee-1
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: l2bridge l2tunnel nat null overlay transparent
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.729.amd64fre.rs1_release_inmarket_rim.170123-1753)
Operating System: Windows Server 2016 Datacenter
OSType: windows
Architecture: x86_64
CPUs: 2
Total Memory: 7 GiB
Name: Win2016Test
ID: A3SA:5LM6:VKW5:CO3X:X2CU:QGPE:VPY7:R4VL:QDLN:AA6K:IAK7:4W4H
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):

Error creating Assets.Database.dacpac

Following the directions in Generating the Dacpac with the Builder

I get the following error:

Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 12/12/2016 3:34:14 PM.
Project "C:\src\Assets.Database\Assets.Database.sqlproj" on node 1 (default targets).
CoreCompile:
  C:\Program Files (x86)\MSBuild\14.0\bin\csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:
"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\mscorlib.dll" /debug+ /debug:full /optimize- /out:obj\Debug\Assets.Database.dll
/subsystemversion:6.00 /target:library /warnaserror- /utf8output "C:\Users\ContainerAdministrator\AppData\Local\Temp\.NETFramework,Version=v4.6.SqlClrAttributes.cs"
  Using shared compilation with compiler from directory: C:\Program Files (x86)\MSBuild\14.0\Bin
SqlBuild:
  Creating a model to represent the project...
  Loading project references...
  Loading project files...
  Building the project model and resolving object interdependencies...
  Validating the project model...
C:\src\Assets.Database\Schema Objects\Assets.sql(12,47,12,47): Build error SQL71501: Foreign Key: [dbo].[FK_Assets_To_Users] has an unresolved reference to Column [
dbo].[Assets].[OwnerUserId]. [C:\src\Assets.Database\Assets.Database.sqlproj]
C:\src\Assets.Database\Schema Objects\Assets.sql(12,73,12,73): Build error SQL71501: Foreign Key: [dbo].[FK_Assets_To_Users] has an unresolved reference to object [
dbo].[Users]. [C:\src\Assets.Database\Assets.Database.sqlproj]
C:\src\Assets.Database\Schema Objects\Assets.sql(12,81,12,81): Build error SQL71501: Foreign Key: [dbo].[FK_Assets_To_Users] has an unresolved reference to Column [
dbo].[Users].[UserId]. [C:\src\Assets.Database\Assets.Database.sqlproj]
Done Building Project "C:\src\Assets.Database\Assets.Database.sqlproj" (default targets) -- FAILED.

Build FAILED.

"C:\src\Assets.Database\Assets.Database.sqlproj" (default target) (1) ->
(SqlBuild target) ->
  C:\src\Assets.Database\Schema Objects\Assets.sql(12,47,12,47): Build error SQL71501: Foreign Key: [dbo].[FK_Assets_To_Users] has an unresolved reference to Column
 [dbo].[Assets].[OwnerUserId]. [C:\src\Assets.Database\Assets.Database.sqlproj]
  C:\src\Assets.Database\Schema Objects\Assets.sql(12,73,12,73): Build error SQL71501: Foreign Key: [dbo].[FK_Assets_To_Users] has an unresolved reference to object
 [dbo].[Users]. [C:\src\Assets.Database\Assets.Database.sqlproj]
  C:\src\Assets.Database\Schema Objects\Assets.sql(12,81,12,81): Build error SQL71501: Foreign Key: [dbo].[FK_Assets_To_Users] has an unresolved reference to Column
 [dbo].[Users].[UserId]. [C:\src\Assets.Database\Assets.Database.sqlproj]

    0 Warning(s)
    3 Error(s)

Time Elapsed 00:00:06.77
cp : Cannot find path
'C:\src\Assets.Database\bin\Debug\Assets.Database.dacpac' because it does not
exist.
At line:1 char:293
+ ... \lib\net40; cp 'C:\src\Assets.Database\bin\Debug\Assets.Database.dacp ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\src\Assets.D...Database.dacp
   ac:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyI
   temCommand

PS C:\Users\Mano\Code\labs\windows\sql-server>```

I get unknown blob

I'm trying to go through the lab but I keep getting the following:

docker pull microsoft/windowsservercore:10.0.14393.321
10.0.14393.321: Pulling from microsoft/windowsservercore
9c7f9c7d9bc2: Retrying in 1 second
de5064718b3f: Downloading
unknown blob

Java Chapter 2: Only Toolbox-based installations have a default machine entry

In Chapter 2 of the Java under the section "Verify Docker Configuration" it is written that calling docker-machine ls will show an entry named "default".

However, when you have a Linux installation (say Ubuntu), docker will not run using Toolbox with a default (virtualbox) instance. I am unsure if that would also be the case with the new Docker Beta.

The document should be amended to reflect that. For example:

On operating systems that run Docker natively without running Virtalbox, such as Linux, there is no default entry.

'helloworld' directory does not exist

On https://github.com/docker/labs/blob/master/developer-tools/java/chapters/ch03-build-image.adoc the instructions use the 'helloworld' directory, see below. However that directory does not exist in the cloned repo. Simply removing the 'helloworld' directory from the mvn commands solved it.

Clone the sample code from https://github.com/arun-gupta/docker-java-sample/.
Create the Docker image:

mvn -f docker-java-sample/helloworld/pom.xml package -Pdocker

.....

Run the Docker container:

mvn -f docker-java-sample/helloworld/pom.xml install -Pdocker

VirtualBox & Hyper-V

This can be a non-issue (sorry for that) but the swarm lab suggests installing Docker for Mac in order to use docker-machine later on for provisioning local VirtualBox VMs.

Isn't there an issue about having both virtualization products on the same box (like VirtualBox breaking after Hyper-V runs)? I don't have a Windows box anymore, so I can't test it myself.

If this is something as simple as "do not run Docker for Windows after boot" perhaps it should be mentioned. Looking up the "disabling Hyper-V" subject looks kinda scary (https://marcofranssen.nl/switch-between-hyper-v-and-virtualbox-on-windows/).

Once again, if this is a non-issue please ignore.

The MusicStore sample app does not build

The docker-compose -f .\docker-compose.windows.yml build command fails. It happens for me on both Docker for Windows beta (1.13.0-rc4) and the standard 1.12.2 Docker on Windows Server 2016.

Step 10/13 : RUN dotnet build .\samples\MusicStore.Standalone
 ---> Running in 757c95651249
Project MusicStore.Standalone (.NETCoreApp,Version=v1.1) will be compiled because expected outputs are missing
Compiling MusicStore.Standalone for .NETCoreApp,Version=v1.1
C:\Program Files\dotnet\dotnet.exe compile-csc @C:\MusicStore\samples\MusicStore.Standalone\obj\Debug\netcoreapp1.1\dotn
et-compile.rsp returned Exit Code 1
C:\MusicStore\samples\MusicStore\MessageServices.cs(7,23): error CS0433: The type 'Task' exists in both 'System.Threadin
g.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Runtime, Version=4.2.0.0, Cultu
re=neutral, PublicKeyToken=b03f5f7f11d50a3a'
C:\MusicStore\samples\MusicStore\MessageServices.cs(13,23): error CS0433: The type 'Task' exists in both 'System.Threadi
ng.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Runtime, Version=4.2.0.0, Cult
ure=neutral, PublicKeyToken=b03f5f7f11d50a3a'
C:\MusicStore\samples\MusicStore\Controllers\AccountController.cs(49,42): error CS1983: The return type of an async meth
od must be void, Task or Task<T>
C:\MusicStore\samples\MusicStore\Controllers\AccountController.cs(49,22): error CS0433: The type 'Task<TResult>' exists
in both 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Runtime
, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
C:\MusicStore\samples\MusicStore\Controllers\AccountController.cs(83,41): error CS1983: The return type of an async meth
od must be void, Task or Task<T>
C:\MusicStore\samples\MusicStore\Controllers\AccountController.cs(83,22): error CS0433: The type 'Task<TResult>' exists
in both 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'System.Runtime
, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
C:\MusicStore\samples\MusicStore\Controllers\AccountController.cs(106,41): error CS1983: The return type of an async met
hod must be void, Task or Task<T>

Service 'web' failed to build: failed to register layer: re-exec error: exit status 1

Hi Mano, I tried to play today with this lab, as soon as I issue the command
Docker-compose -f .\docker-compose.yml build
I get

Building web
Step 1/8 : FROM node:5.11.0-slim
5.11.0-slim: Pulling from library/node
8b87079b7a06: Extracting [==================================================>] 51.36 MB/51.36 MB
a3ed95caeb02: Download complete
1bb8eaf3d643: Download complete
5674f5dccbc4: Download complete
96a79bcf8a3b: Download complete
ERROR: Service 'web' failed to build: failed to register layer: re-exec error: exit status 1: output: Failed to OpenForBackup failed in Win32: open \\?\E:\Hyper-V\DockerMachines\wind
owsfilter\1d1c566d88490bc2e99798d8df8afe25328ee53c986f26731f6bf1a136d29055\usr\share\man\man3\Locale::gettext.3pm.gz: The filename, directory name, or volume label syntax is incorrec
t. (0x1f) \\?\E:\Hyper-V\DockerMachines\windowsfilter\1d1c566d88490bc2e99798d8df8afe25328ee53c986f26731f6bf1a136d29055\usr\share\man\man3\Locale::gettext.3pm.gz

This is on a physical win 10 machine windows containers enabled and HYper-V on
Thanks for your help

VS 2K15 instead of VSC

Hi, is it possible to use VS 2K15 instead of VSC? as this tutorial is not going through on windows containers, I decided to run it with my Kitematic setup on a win10 physical desktop.

Docker-compse worked fine and I was able to access the website at http://192.168.99.100:8000/ .

What is needed for VS to make it possible following this tutorial?
Thanks

client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

When I try to follow the README.md in this:
https://github.com/docker/labs/blob/master/windows/windows-containers/MultiContainerApp.md

I get this message:

$ docker-compose -f ./docker-compose.windows.yml up

client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version

This is my docker-compose version information:

$ docker-compose version

docker-compose version 1.9.0, build 2585387
docker-py version: 1.10.6
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2h 3 May 2016

It is running on windows-container mode.

If I try to switch to linux-container mode this my 'build' result:
$ docker-compose -f ./docker-compose.windows.yml build

db uses an image, skipping
Building web
Step 1/13 : FROM microsoft/dotnet:1.0.0-preview2-windowsservercore-sdk
1.0.0-preview2-windowsservercore-sdk: Pulling from microsoft/dotnet
Service 'web' failed to build: unknown blob

It is very annoying start with a simple tutorial and get this kind of problems. 👎 :-(

Any help would be welcome.

why docker-machine can create the manager1,but the follow macines can not by the setup.sh script thank you

** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE DOCKER LABS TUTORIAL CONTENT **

  • If you have a bug working with Docker itself, not related to these labs, please file the bug on the Docker repo *
  • If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the Docker Community and you'll get an invite. *
  • Or go to the Docker Forums *

Please provide the following information so we can assess the issue you're having

Which lab is it that you're having issues with?

Description

======> Creating 3 manager machines ...
======> Creating manager1 machine ...
Running pre-create checks...
Creating machine...
(manager1) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/manager1/boot2docker.iso...
(manager1) Creating VirtualBox VM...
(manager1) Creating SSH key...
(manager1) Starting the VM...
(manager1) Check network to re-create if needed...
(manager1) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env manager1
======> Creating manager2 machine ...
Running pre-create checks...
Creating machine...
(manager2) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/manager2/boot2docker.iso...
(manager2) Creating VirtualBox VM...
(manager2) Creating SSH key...
Wrapper Docker Machine process exiting due to closed plugin server (read tcp 127.0.0.1:43682->127.0.0.1:41511: read: connection reset by peer)
Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:43682->127.0.0.1:41511: read: connection reset by peer
======> Creating manager3 machine ...
Running pre-create checks...
Creating machine...
(manager3) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/manager3/boot2docker.iso...
(manager3) Creating VirtualBox VM...
(manager3) Creating SSH key...
Wrapper Docker Machine process exiting due to closed plugin server (read tcp 127.0.0.1:33328->127.0.0.1:42336: read: connection reset by peer)
Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:33328->127.0.0.1:42336: read: connection reset by peer
======> Creating 3 worker machines ...
======> Creating worker1 machine ...
Running pre-create checks...
Creating machine...
(worker1) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/worker1/boot2docker.iso...
(worker1) Creating VirtualBox VM...
(worker1) Creating SSH key...
Wrapper Docker Machine process exiting due to closed plugin server (read tcp 127.0.0.1:51994->127.0.0.1:39825: read: connection reset by peer)
Error creating machine: Error in driver during machine creation: read tcp 127.0.0.1:51994->127.0.0.1:39825: read: connection reset by peer
======> Creating worker2 machine ...
Running pre-create checks...
Creating machine...
(worker2) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/worker2/boot2docker.iso...
(worker2) Creating VirtualBox VM...
(worker2) Creating SSH key...
(worker2) Starting the VM...
(worker2) Check network to re-create if needed...
(worker2) Waiting for an IP...
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Error creating machine: Error in driver during machine creation: unexpected EOF
======> Creating worker3 machine ...
Running pre-create checks...
Creating machine...
(worker3) Copying /root/.docker/machine/cache/boot2docker.iso to /root/.docker/machine/machines/worker3/boot2docker.iso...
(worker3) Creating VirtualBox VM...
(worker3) Creating SSH key...
(worker3) Starting the VM...
(worker3) Check network to re-create if needed...
(worker3) Waiting for an IP...
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Wrapper Docker Machine process exiting due to closed plugin server (unexpected EOF)
Error creating machine: Error in driver during machine creation: unexpected EOF
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Stopped Unknown
manager1 - virtualbox Stopped Unknown
manager2 - virtualbox Error Unknown machine does not exist
manager3 - virtualbox Stopped Unknown
worker1 - virtualbox Stopped Unknown
worker2 - virtualbox Stopped Unknown
worker3 * virtualbox Running Unknown ssh command error:
command : ip addr show
err : exit status 255
output :
======> Initializing first swarm manager ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "manager1" is not running
Error: Cannot run SSH command: Host "manager1" is not running
Error: Cannot run SSH command: Host "manager1" is not running
manager_token:
worker_token:
======> manager2 joining swarm as manager ...
Error getting IP address: machine does not exist
Error getting IP address: machine does not exist
Error getting IP address: Host is not running
machine does not exist
======> manager3 joining swarm as manager ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "manager3" is not running
Error: Cannot run SSH command: Host "manager1" is not running
======> worker1 joining swarm as worker ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "worker1" is not running
======> worker2 joining swarm as worker ...
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error getting IP address: Host is not running
Error: Cannot run SSH command: Host "worker2" is not running
======> worker3 joining swarm as worker ...
Error getting IP address: ssh command error:
command : ip addr show
err : exit status 255
output :
Error getting IP address: ssh command error:
command : ip addr show
err : exit status 255
output :
Error getting IP address: Host is not running
exit status 255
Error: Cannot run SSH command: Host "manager1" is not running
[root@localhost swarm]# docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Stopped Unknown
manager1 - virtualbox Stopped Unknown
manager2 - virtualbox Error Unknown machine does not exist
manager3 - virtualbox Stopped Unknown
worker1 - virtualbox Stopped Unknown
worker2 - virtualbox Stopped Unknown
worker3 * virtualbox Running Unknown ssh command error:
command : ip addr show
err : exit status 255
output :

Steps to reproduce the issue, if relevant:

  1. I have install compose docker-machine swarm
    2.I can create default by docker-machine

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 06:38:28 2017
OS/Arch: linux/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 06:38:28 2017
OS/Arch: linux/amd64
Experimental: false

Output of docker info:

Containers: 18
Running: 3
Paused: 0
Stopped: 15
Images: 26
Server Version: 1.13.1
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: 6atpx6lx521jdbavbu6k32xeq
Is Manager: true
ClusterID: rscvk8tg9do73imq0xpo3gf8e
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: 192.168.100.129
Manager Addresses:
192.168.100.129:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1
runc version: 9df8b306d01f59d3a8029be411de015b7304dd8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-514.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 976.5 MiB
Name: localhost.localdomain
ID: IX7M:AJGC:GFXJ:BRD2:XFO5:26TV:BDP4:W3OL:TYQH:TNWZ:2YNH:6B6S
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
http://5445e28f.m.daocloud.io/
Live Restore Enabled: false

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
my test environment is based the vmware workstation pro (centos 7) of win7

Docker service ls command should show state of each tasks.

The docker service command should be fixed to show the state of tasks properly.
It is hard to figure out the state of a task. It becomes hard to debug failure scenarios too.

$ docker service ls
ID NAME REPLICAS IMAGE COMMAND
acemxpti7m36 wildfly-app 0/2 arungupta/wildfly-app:1

docker version | grep apparmor inaccurate check for apparmor kernel module

The following command shows you how to check if AppArmor is enabled in your system's kernel:
Check from Docker 1.12 or higher
$ docker version | grep apparmor
Security Options: apparmor seccomp
If the above output does not return a line with apparmor then your system does not have AppArmor enabled in its kernel.

In the vagrant box ubuntu/xenial64 (after a newgrp docker):

root@ubuntu-xenial:~# docker version
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   23cf638
 Built:        Tue, 27 Sep 2016 12:25:38 +1300
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   23cf638
 Built:        Tue, 27 Sep 2016 12:25:38 +1300
 OS/Arch:      linux/amd64

root@ubuntu-xenial:~# apparmor_status
apparmor module is loaded.
14 profiles are loaded.
14 profiles are in enforce mode.
   /sbin/dhclient
   /usr/bin/lxc-start
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/NetworkManager/nm-dhcp-helper
   /usr/lib/connman/scripts/dhclient-script
   /usr/lib/lxd/lxd-bridge-proxy
   /usr/lib/snapd/snap-confine
   /usr/lib/snapd/snap-confine//mount-namespace-capture-helper
   /usr/sbin/tcpdump
   docker-default
   lxc-container-default
   lxc-container-default-cgns
   lxc-container-default-with-mounting
   lxc-container-default-with-nesting
0 profiles are in complain mode.
1 processes have profiles defined.
1 processes are in enforce mode.
   /sbin/dhclient (954) 
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

Please update the lab with a more accurate command for assessing if the apparmor kernel module is loaded for Docker.

the error please help me

** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE DOCKER LABS TUTORIAL CONTENT **

  • If you have a bug working with Docker itself, not related to these labs, please file the bug on the Docker repo *
  • If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the Docker Community and you'll get an invite. *
  • Or go to the Docker Forums *

Please provide the following information so we can assess the issue you're having

Which lab is it that you're having issues with?

Description

i just do this step by step your examles, but I do not execute the later step(the error blow)

Steps to reproduce the issue, if relevant:

  1. the error tips my pip version too low but i do not how to update because could not find where is the pip
  2. By the ‘ find -name ' to find pip ,the tty show docker layeres
  3. thank you your help!

**Describe the results you received:

Sending build context to Docker daemon 576.5 kB
Step 1/8 : FROM alpine
---> 88e169ea8f46
Step 2/8 : RUN apk add --update py-pip
---> Using cache
---> 45a9fdd3bdab
Step 3/8 : COPY requirements.txt /usr/src/app/
---> Using cache
---> 4ff5d7d97da7
Step 4/8 : RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt
---> Running in cabc45637cac
Collecting sk==0.10.1 (from -r /usr/src/app/requirements.txt (line 1))
Could not find a version that satisfies the requirement sk==0.10.1 (from -r /usr/src/app/requirements.txt (line 1)) (from versions: )
No matching distribution found for sk==0.10.1 (from -r /usr/src/app/requirements.txt (line 1))
You are using pip version 9.0.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c pip install --no-cache-dir -r /usr/src/app/requirements.txt' returned a non-zero code: 1

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
Version: 1.13.1
API version: 1.26
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 06:38:28 2017
OS/Arch: linux/amd64

Server:
Version: 1.13.1
API version: 1.26 (minimum version 1.12)
Go version: go1.7.5
Git commit: 092cba3
Built: Wed Feb 8 06:38:28 2017
OS/Arch: linux/amd64
Experimental: false

Output of docker info:

Containers: 11
Running: 0
Paused: 0
Stopped: 11
Images: 13
Server Version: 1.13.1
Storage Driver: overlay
Backing Filesystem: xfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: jhrfakm8cz17c6bctdd1bwio2
Is Manager: true
ClusterID: u30ino1hki9ydjontp7r41fqe
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: 192.168.100.128
Manager Addresses:
192.168.100.128:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1
runc version: 9df8b306d01f59d3a8029be411de015b7304dd8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 3.10.0-514.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 976.5 MiB
Name: localhost.localdomain
ID: LCLE:7CAF:RVBO:4D6T:D2TV:BXDN:QGAF:Z5AD:BNDU:DO2K:R53B:46XF
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Registry Mirrors:
http://5445e28f.m.daocloud.io/
Live Restore Enabled: false

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):

Error response from daemon: Unknown instruction: PORT

Which lab is it that you're having issues with?
Tutorial Dockerizing a Node.js application
Description
Update Tutorial Dockerizing a Node.js application on README instructions2_application_image.md
Getting an error Error response from daemon: Unknown instruction: PORT

Steps to reproduce the issue, if relevant:

  1. Create Dockerfile based on template
  2. Run command docker build -t message-app .

Describe the results you received:
Error response from daemon: Unknown instruction: PORT

Describe the results you expected:
Successfully built <hash>

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
 Version:      1.13.0
 API version:  1.25
 Go version:   go1.7.3
 Git commit:   49bf474
 Built:        Wed Jan 18 16:20:26 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      1.13.0
 API version:  1.25 (minimum version 1.12)
 Go version:   go1.7.3
 Git commit:   49bf474
 Built:        Wed Jan 18 16:20:26 2017
 OS/Arch:      linux/amd64
 Experimental: true

Output of docker info:

Containers: 16
 Running: 0
 Paused: 0
 Stopped: 16
Images: 44
Server Version: 1.13.0
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 133
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.4-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.952 GiB
Name: moby
ID: 2MRL:FA3J:YABC:HGWY:R3LU:OXGR:M33R:PY7T:ETZF:YPYT:TZTI:Y3G2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 17
 Goroutines: 28
 System Time: 2017-03-21T16:52:06.044529338Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Username: lbarreras
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Additional environment details
Using Docker for Mac

Change java to openjdk

In "Create your first Docker image using Java" step, change docker pull java to docker pull openjdk, since java has been deprecated in Docker Hub. Also, need to update all subsequent references to java in the instructions.

hello-dotnetbot is not for Windows

Which lab is it that you're having issues with?

https://github.com/docker/labs/tree/master/windows/hello-dotnetbot

Description

This tutorial is in the Windows category, so I expected it would run on Windows.
But it does not work on Windows, so it should have more details in the README.

Steps to reproduce the issue, if relevant:

  1. docker build -t dotnetbot .

Describe the results you received:

PS C:\projects\labs\windows\hello-dotnetbot> docker build -t dotnetbot .
Sending build context to Docker daemon 8.192 kB
Step 1/7 : FROM microsoft/dotnet:latest
latest: Pulling from microsoft/dotnet
image operating system "linux" cannot be used on this platform

Describe the results you expected:

I expected stuff in the windows folder to run on Windows. I think this should be moved or at least the README should be better.

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):

Windows Server 2016 in VirtualBox.

Change description in votingapp.md for "Build and tag images" section

docker build command given in this section explicitly mentions path for the apps.
For example

docker build --no-cache -t <YOUR_DOCKER_ID>/votingapp_voting-app vote

vote in this case.

However descriptions says

Navigate to each of the directories where you have a Dockerfile to build and tag your images that you want to submit.

This results in following error

unable to prepare context: unable to evaluate symlinks in context path: lstat /root/example-voting-app/vote/vote: no such file or directory

Building Swarm for Windows fails

I'm trying to build the Swarm image on Windows Server 2016 Tech Preview 4 with Docker 1.10:

PS C:\Users\morgan\labs\windows\swarm-windows> docker version
Client:
 Version:      1.10.0-dev
 API version:  1.22
 Go version:   go1.5.1
 Git commit:   59a341e
 Built:        Fri Nov 13 17:23:07 UTC 2015
 OS/Arch:      windows/amd64

Server:
 Version:      1.10.0-dev
 API version:  1.22
 Go version:   go1.5.1
 Git commit:   59a341e
 Built:        Fri Nov 13 17:23:07 UTC 2015
 OS/Arch:      windows/amd64

The build seems to fail because Chocolatey can't be found:

PS C:\Users\morgan\labs\windows\swarm-windows> docker build --no-cache -t swarm .
Sending build context to Docker daemon 4.096 kB
Step 1 : FROM windowsservercore:10.0.10586.0
 ---> 6801d964fda5
Step 2 : RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
 ---> Running in 07c3194a01dc
(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) > 2>&1
 ---> 49341ff52105
Removing intermediate container 07c3194a01dc
Step 3 : ENV SWARM_VERSION v1.1.3
 ---> Running in e00975444715
 ---> 87867191513b
Removing intermediate container e00975444715
Step 4 : ENV GOROOT C:\\tools\\go
 ---> Running in 2a1f927289d2
 ---> 49c81ea4ac74
Removing intermediate container 2a1f927289d2
Step 5 : ENV GOPATH C:\\work
 ---> Running in dcd70908d277
 ---> e0bbf0624a67
Removing intermediate container dcd70908d277
Step 6 : ENV SWARM_HOST :2375
 ---> Running in f8fbdb027148
 ---> 1d1feb7401a7
Removing intermediate container f8fbdb027148
Step 7 : WORKDIR /
 ---> Running in d09680c7db1c
 ---> af6117faac38
Removing intermediate container d09680c7db1c
Step 8 : COPY . .
 ---> 78a23d4269a1
Removing intermediate container 7479aad21488
Step 9 : RUN install-and-cleanup
 ---> Running in eb616673c589

C:\>REM build swarm and cleanup to minimize image layer size

C:\>REM install golang, git, godep

C:\>choco install golang -y
'choco' is not recognized as an internal or external command,
operable program or batch file.

C:\>if errorlevel 1 exit 1
The command 'cmd /S /C install-and-cleanup' returned a non-zero code: 1

I started a container from one of the intermediate images and choco didn't appear to be installed.

seccomp lab step order

I feel fairly certain that Seccomp and Docker under Prerequisites and Clone the labs GitHub repo as Step 1 should be switched in the seccomp lab, but wanted to do this as an issue just in case I am wrong.

Also

The remaining steps in this lab will assume that you are running commands from this dockercon-workshop/seccomp directory.

should be

The remaining steps in this lab will assume that you are running commands from this labs/security/seccomp directory.

Although speaking of the dockercon-workshop git repo, you might want to put a git clone command for it in Step 5 of the apparmor lab. I realized when it mentioned to be in a dockercon-workshop directory I probably needed to search github for a repo with that name and clone it, but it might be helpful for others if it was more clear.

Unable to create dacpac file

Hi Admin,

I follow the guide step by step by unable to create the the dacpac file in window server 2016. It got no error . After the "docker build -t assets-db-builder -f Dockerfile.builder ." there are not Assets.Database.dacpac been generated. Please help.

Eng,

Service 'web' failed to build: unknown blob=============> ]

HI,
I am trying to build this lab but getting the error
1B�[31mERROR�[0m: Service 'web' failed to build: unknown blob=============> ]
I am running on win10 enterprise, Hyper-V enbaled, docker for windows beta but I did not install windows containers.
Of course, I have changed the external name of the network in the docker.compose.windows to the name of the nat in my hyper-V.
So does this tutorial needs windows containers?
2nd, looking at your instructions on how to install containers in win 10, it is indicated to add the docker to the path after downloading, wouldn²t this disturb the command already mapped by Docker for windows?
Thanks

Java Chapter 06: bad instructions for connecting to swarm for windows

https://github.com/docker/labs/blob/master/java/chapters/ch06-swarm.adoc#Connect_to_Docker_Swarm_Cluster mentions the following for connecting to swarm:

If you’re on Windows, then use the docker-machine env --swarm swarm-master command only. Then copy the output into an editor to replace all appearances of EXPORT with SET, remove the quotes, and all appearances of "/" with "". Finally, issue the three commands at your command prompt.

This changing from export to set and changing to \ doesn't seem to help as the docker toolbox is a git for windows bash shell (not windows cmd) so it understands export statements not set.

If you are running the current version of docker Toolbox for windows the output of the docker-machine env command actually provides the valid eval statement:

$  docker-machine env --swarm swarm-master
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.102:3376"
export DOCKER_CERT_PATH="C:\Users\ddefolo\.docker\machine\machines\swarm-master"
export DOCKER_MACHINE_NAME="swarm-master"
# Run this command to configure your shell:
# eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env --swarm swarm-master)

After doing the following docker info showed the swarm info:
eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env --swarm swarm-master)

Build Error: flask-app

I ran docker build and received the following error. Any idea what I need to adjust to resolve it?

Step 2 : RUN apk add --update py-pip
---> Running in 1ff1442df618
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
py-pip (virtual):
provided by: py2-pip
required by: world[py-pip]
The command '/bin/sh -c apk add --update py-pip' returned a non-zero code: 1

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.