Question on the comamnds used.
For the command: docker build –t “stuart/minecraft” .
Why is it "stuart/minecraft” and not "john/minecraft” or "dog/minecraft” or whatever ?
There's growing interest in VMware’s Photon. Essentially, Photon lets highly optimised Docker containers into VMware Land. One of the great things about deploying Docker is that it can take mere seconds to spin up a new instance. Photon can be thought of as a competitor to CoreOS and similar offerings. What is different about …
You can specify whatever name you like. The convention is author/project:tag. if you want to publish your dockerfiles, the author field should be unique AIUI.
Eg, on my personal machine, I have the following Docker images:
diodesign/debian-x11:latest
rust:1.20.0
diodesign/debian-verilog:latest
diodesign/debian-gcc:testing
debian:testing
which are respectively:
My custom Debian-based X11 desktop
Standard Rust 1.20 build environment
My custom Debian-based Verilog dev environment
My custom Debian-based C/C++ dev environment
Standard Debian Testing install
C.
I am having problems running the commands:
root@photon-machine [ /opt/mineserver ]# docker build –t "stuart/minecraft" .
"docker build" requires exactly 1 argument(s).
See 'docker build --help'.
Usage: docker build [OPTIONS] PATH | URL | -
Build an image from a Dockerfile
root@photon-machine [ /opt/mineserver ]#
So I try this:
root@photon-machine [ /opt/mineserver ]# docker build .
Sending build context to Docker daemon 2.048kB
Step 1/8 : FROM ubuntu:latest
---> 20c44cd7596f
Step 2/8 : MAINTAINER Joe Public <someone@somewhere.com>
---> Using cache
---> 0b98e5281f1f
Step 3/8 : USER root
---> Using cache
---> 91e99f1dacd3
Step 4/8 : RUN mkdir opt/minecraft/
---> Using cache
---> 928404f65124
Step 5/8 : RUN apt-get -y update
---> Using cache
---> 565897b2aaae
Step 6/8 : RUN apt-get install -y openjdk-7-jre-headless wget>
---> Running in f9efde7e7948
/bin/sh: 1: Syntax error: end of file unexpected
The command '/bin/sh -c apt-get install -y openjdk-7-jre-headless wget>' returned a non-zero code: 2
root@photon-machine [ /opt/mineserver ]#
Not sure where to go from here, but its fun trying to learn new things.