GithubHelp home page GithubHelp logo

nicholasdille / docker Goto Github PK

View Code? Open in Web Editor NEW
12.0 6.0 5.0 32.81 MB

Repository of container images for Windows as well as Linux

Home Page: http://dille.name/blog/tags/#Container

License: Apache License 2.0

Batchfile 2.38% PowerShell 76.08% Shell 21.54%
docker dockerfiles docker-images windows-containers windows-container linux-containers

docker's Introduction

Install docker tools

choco install -y docker docker-compose docker-machine

Useful commands

  • Remove all containers:

    docker ps --format "{{.ID}}" -a | % {docker rm $_}
    
  • Remove all container based on a specific image

    docker ps -f ancestor=windowsservercore -a --format "{{.ID}}" | % {docker rm $_}
    
  • Remove all untagged (dangling) images

    docker images -f dangling=true --format "{{.ID}}" | % {docker rmi $_}
    

docker's People

Contributors

nicholasdille avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

Unrecognised volume spec: invalid volume specification: 'c:minecraftconfig'

Hi , I went to build this I get this error

Unrecognised volume spec: invalid volume specification: 'c:minecraftconfig'

I am guessing it should be c:/minecraft/config and somehow got messed up

thanks

C:\minecraft\docker-master (2)\docker-master\minecraft> .\docker-build.cmd

C:\minecraft\docker-master (2)\docker-master\minecraft>docker build -t nicholasdille/minecraft .
Sending build context to Docker daemon 5.12 kB
Step 1/9 : FROM nicholasdille/javaruntime:nano
---> da2e38cd7bbf
Step 2/9 : MAINTAINER [email protected]
---> Using cache
---> 58b770069dc7
Step 3/9 : SHELL powershell -Command
---> Using cache
---> 5bcafa07aa64
Step 4/9 : ENV JAVA_MEM_START 32m JAVA_MEM_MAX 1024m
---> Using cache
---> d2c3262551c6
Step 5/9 : RUN mkdir c:\minecraft,c:\minecraft\config,c:\minecraft\plugins,c:\minecraft\worlds
---> Using cache
---> b0c6e4909585
Step 6/9 : ADD entry.ps1 /
---> Using cache
---> 3cf5e9e8a477
Step 7/9 : ENTRYPOINT c:\entry.ps1
---> Using cache
---> e1b6586282f1
Step 8/9 : EXPOSE 25565 25575
---> Using cache
---> e77129af2a97
Step 9/9 : VOLUME c:\minecraft\config c:\minecraft\plugins c:\minecraft\worlds
Unrecognised volume spec: invalid volume specification: 'c:minecraftconfig'

Error Running on Nano or Core sever

I ran the RunBuildTools.ps1 locally and it works fine. When it runs on the image nano or core it fails with the below error. Do you have any idea why?

PS C:\Users\colemans\Desktop\Docker\spigotmc-build> C:\Users\colemans\Desktop\Docker\spigotmc-build\docker-run.ps1
Running build...
�[2J�[H�[37;40mPreparing environment...
Calling SpigotMC BuildTools...
Loading BuildTools version: git-BuildTools-d729b3d-73 (#73)
*** Could not find PortableGit installation, downloading. ***
Starting download of https://static.spigotmc.org/git/PortableGit-2.15.0-64-bit.7z.exe
Downloaded file: PortableGit-2.15.0-64-bit\PortableGit-2.15.0-64-bit.7z.exe with md5: 84711a823b5d7bceb1b9d78036cdb14a
Extracting downloaded git install
Exception in thread "main" java.lang.RuntimeException: Error running command, return status !=0: [cmd.exe, /C, C:\build
\PortableGit-2.15.0-64-bit\PortableGit-2.15.0-64-bit.7z.exe, -y, -gm2, -nr]
at org.spigotmc.builder.Builder.runProcess0(Builder.java:639)
at org.spigotmc.builder.Builder.runProcess(Builder.java:597)
at org.spigotmc.builder.Builder.main(Builder.java:170)
at org.spigotmc.builder.Bootstrap.main(Bootstrap.java:29)
Extracting file name...
Done.

Java Container build fails on download

docker/javaruntime/docker-build.ps1 Calls Download.ps1. it failed with the below. I suspect it is because of the requirement to login and accept the terms.

At C:\Users\colemans\Desktop\Docker\javaruntime\Download.ps1:7 char:5
+     throw ('Expected to retrieve only one URI but got {0}' -f $JreUri ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Expected to ret...e URI but got 0:String) [], RuntimeException
    + FullyQualifiedErrorId : Expected to retrieve only one URI but got 0

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.