Dokerfile未加载到Google Cloud Platform中-GUI问题

时间:2018-07-23 19:55:03

标签: dockerfile

我正在尝试设置一个docker文件。 (https://hub.docker.com/r/karhohsbroadinstitute/docker-cellprofiler/)。

我使用

拉出了dockerfile
docker pull karhohsbroadinstitute/docker-cellprofiler

然后我使用sudo docker run 08ae61fbc6ee运行了

我得到以下输出

sara@instance-4:~$ sudo docker run 08ae61fbc6ee
[fix-attrs.d] applying owners & permissions fixes...
[fix-attrs.d] 00-runscripts: applying... 
[fix-attrs.d] 00-runscripts: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Usage: cellprofiler [options] [<output-file>])
         where <output-file> is the optional filename for the output file of
               measurements when running headless.
         The flags -p, -r and -c are required for a headless run.

Options:
  -h, --help            show this help message and exit
  -p PIPELINE_FILENAME, --pipeline=PIPELINE_FILENAME, --project=PIPELINE_FILENAME
                        Load this pipeline file or project on startup. If
                        specifying a pipeline file rather than a project, the
                        -i flag is also needed unless the pipeline is saved
                        with the file list.
  -c, --run-headless    Run headless (without the GUI)
  -r, --run             Run the given pipeline on startup
  -o OUTPUT_DIRECTORY, --output-directory=OUTPUT_DIRECTORY
                        Make this directory the default output folder
  -i IMAGE_DIRECTORY, --image-directory=IMAGE_DIRECTORY
                        Make this directory the default input folder
  -f FIRST_IMAGE_SET, --first-image-set=FIRST_IMAGE_SET
                        The one-based index of the first image set to process
  -l LAST_IMAGE_SET, --last-image-set=LAST_IMAGE_SET
                        The one-based index of the last image set to process
  -g GROUPS, --group=GROUPS
                        Restrict processing to one grouping in a grouped
                        pipeline. For instance, "-g ROW=H,COL=01", will
                        process only the group of image sets that match the
                        keys.
  --plugins-directory=PLUGINS_DIRECTORY
                        CellProfiler will look for plugin modules in this
                        directory (headless-only).
  --version             Print the version and exit
  -t TEMP_DIR, --temporary-directory=TEMP_DIR
                        Temporary directory. CellProfiler uses this for
                        downloaded image files and for the measurements file,
                        if not specified. The default is /tmp
  -d DONE_FILE, --done-file=DONE_FILE
                        The path to the "Done" file, written by CellProfiler
                        shortly before exiting
  --measurements        Open the pipeline file specified by the -p switch and
                        print the measurements made by that pipeline
  --print-groups=PRINT_GROUPS_FILE
                        Open the measurements file following the --print-
                        groups switch and print the groups in its image sets.
                        The measurements file should be generated using
                        CreateBatchFiles. The output is a JSON-encoded data
                        structure containing the group keys and values and the
                        image sets in each group.
  --get-batch-commands=BATCH_COMMANDS_FILE
                        Open the measurements file following the --get-batch-
                        commands switch and print one line to the console per
                        group. The measurements file should be generated using
                        CreateBatchFiles and the image sets should be grouped
                        into the units to be run. Each line is a command to
                        invoke CellProfiler. You can use this option to
                        generate a shell script that will invoke CellProfiler
                        on a cluster by substituting "CellProfiler" with your
                        invocation command in the script's text, for instance:
                        CellProfiler --get-batch-commands Batch_data.h5 | sed
                        s/CellProfiler/farm_jobs.sh. Note that CellProfiler
                        will always run in headless mode when --get-batch-
                        commands is present and will exit after generating the
                        batch commands without processing any pipeline.
  --images-per-batch=IMAGES_PER_BATCH
                        For pipelines that do not use image grouping this
                        option specifies the number of images that should be
                        processed in each batch if --get-batch-commands is
                        used. Defaults to 1.
  --data-file=DATA_FILE
                        Specify the location of a .csv file for LoadData. If
                        this switch is present, this file is used instead of
                        the one specified in the LoadData module.
  --file-list=IMAGE_SET_FILE
                        Specify a file list of one file or URL per line to be
                        used to initially populate the Images module's file
                        list.
  --do-not-write-schema
                        Do not execute the schema definition and other per-
                        experiment SQL commands during initialization when
                        running a pipeline in batch mode.
  --write-schema-and-exit
                        Create the experiment database schema and exit
  --omero-credentials=OMERO_CREDENTIALS
                        Enter login credentials for OMERO. The credentials are
                        entered as comma-separated key/value pairs with keys,
                        "host" - the DNS host name for the OMERO server,
                        "port" - the server's port # (typically 4064), "user"
                        - the name of the connecting user, "password" - the
                        connecting user's password, "session-id" - the session
                        ID for an OMERO client session., "config-file" - the
                        path to the OMERO credentials config file. A typical
                        set of credentials might be: --omero-credentials
                        host=demo.openmicroscopy.org,port=4064,session-
                        id=atrvomvjcjfe7t01e8eu59amixmqqkfp
  -L LOG_LEVEL, --log-level=LOG_LEVEL
                        Set the verbosity for logging messages: 10 or DEBUG
                        for debugging, 20 or INFO for informational, 30 or
                        WARNING for warning, 40 or ERROR for error, 50 or
                        CRITICAL for critical, 50 or FATAL for fatal.
                        Otherwise, the argument is interpreted as the file
                        name of a log configuration file (see
                        http://docs.python.org/library/logging.config.html for
                        file format)
cellprofiler exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

我拼命尝试运行cellprofiler GUI而不处理依赖项,并且似乎运行并没有做任何事情。非常感谢您的帮助。

当我输入

xhost +local:root

我明白了

xhost:  unable to open display ""

0 个答案:

没有答案