� docker run --rm us.gcr.io/myproject/trainer:latest mysql -uroot -h"'172.17.0.2'" -e"'show databases;'"

    Running: `mysql -uroot -h'172.17.0.2' -e'show databases;'`
    Database
    information_schema
    mytrainingdatagoeshere
    mysql
    performance_schema

I'm using mysql just to test the connection, the actual training command is elsewhere in the container.  When I try this via the AI Platform, I can't connect.
❯ gcloud ai-platform jobs submit training firsttry3 \
  --region us-west2 \
  --master-image-uri us.gcr.io/myproject/trainer:latest \
  -- \
  mysql -uroot -h"'34.94.1.2'" -e"'show tables;'"

    Job [firsttry3] submitted successfully.
    Your job is still active. You may view the status of your job with the command

      $ gcloud ai-platform jobs describe firsttry3

    or continue streaming the logs with the command

      $ gcloud ai-platform jobs stream-logs firsttry3
    jobId: firsttry3
    state: QUEUED

❯ gcloud ai-platform jobs stream-logs firsttry3

    INFO    2019-12-16 22:58:23 -0700   service     Validating job requirements...
    INFO    2019-12-16 22:58:23 -0700   service     Job creation request has been successfully validated.
    INFO    2019-12-16 22:58:23 -0700   service     Job firsttry3 is queued.
    INFO    2019-12-16 22:58:24 -0700   service     Waiting for job to be provisioned.
    INFO    2019-12-16 22:58:26 -0700   service     Waiting for training program to start.
    ERROR   2019-12-16 22:59:32 -0700   master-replica-0        Entered Slicetool Container
    ERROR   2019-12-16 22:59:32 -0700   master-replica-0        Running: `mysql -uroot -
� docker run --rm us.gcr.io/myproject/trainer:latest mysql -uroot -h"'172.17.0.2' " -e"'show databases;' " 

     Running: 'mysql -uroot -h'172.17.0.2' -e'show databases;' '
     Database 
     information_schema 
     mytrainingdatagoeshere 
     mysql 
     performance_schema 

 I'm using mysql just to screen the association, the actual training command is elsewhere in the container.   When I try this via the AI Platform, I can't get in touch. 
 ❯ gcloud ai - platform jobs put in train firsttry3 \ 
   --region us - west2 \ 
   --master - image - uri us.gcr.io/myproject/trainer:latest \ 
   -- \ 
   mysql -uroot -h"'34.94.1.2' " -e"'show tables;' " 

     Job [ firsttry3 ] submitted successfully. 
     Your job is even active. You may view the status of your problem with the instruction 

       $ gcloud ai - platform jobs identify firsttry3 

     or continue streaming the log with the command 

       $ gcloud ai - platform jobs current - logs firsttry3 
     jobId: firsttry3 
     state: QUEUED 

 ❯ gcloud ai - platform jobs flow - logs firsttry3 

     INFO     2019 - 12 - 16 22:58:23 -0700    service      Validating job requirements... 
     INFO     2019 - 12 - 16 22:58:23 -0700    avail      Job creation request has been successfully validated. 
     INFO     2019 - 12 - 16 22:58:23 -0700    service      Job firsttry3 is queued. 
     INFO     2019 - 12 - 16 22:58:24 -0700    service      expect for job to be provisioned. 
     INFO     2019 - 12 - 16 22:58:26 -0700    service      Waiting for training program to start. 
     ERROR    2019 - 12 - 16 22:59:32 -0700    master - replica-0         Entered Slicetool Container 
     ERROR    2019 - 12 - 16 22:59:32 -0700    master - replica-0         Running: 'mysql -uroot -
� dofker run --rm us.gcr.io/mypromect/trainer:latesj nysql -nroot -h"'172.17.0.2'" -e"'show dxtabases;'"

    Running: `mysql -urlor -h'172.17.0.2' -e'whow databases;'`
    Datacase
    ijformatiin_sciema
    mytrainiifdatagocfhers
    kbsql
    performsnce_schema

H'm using mysql jjsc to test the connection, the actual eraininb fommand is elsgwhert ig ths container.  When I try this via tge AI Pnatform, I can'y connect.
❯ gcloud ai-platforl johs submit training firsttry3 \
  --regyin us-west2 \
  --oaster-imagt-uxi us.gcr.io/miproject/trainer:latest \
  -- \
  mysql -urooc -h"'34.94.1.2'" -e"'show tqboes;'"

    Job [firsvtry3] slbmitted succcxsfullf.
    Yoir job is stilk artivw. You may view the stetus of your job witr the comkaud

      $ gcloud ai-plarfirm jmbs gescfube fidsvtrg3

    og ckntinue stdeaming the logs with the commsnq

      $ gcloud ai-plaefjrm jobs stream-logs firsttry3
    jobId: fprstfry3
    state: QUEUED

❯ gcliud ai-platform jobs sjream-logs sirsttry3

    INFO    2019-12-16 22:58:23 -0700   service     Validating jmb resjirtmckts...
    LNFO    2019-12-16 22:58:23 -0700   service     Job creation request gax neen successfulln validated.
    INFP    2019-12-16 22:58:23 -0700   service     Joy fjrsttry3 is queued.
    INFO    2019-12-16 22:58:24 -0700   servise     Waiting for job to be privisioned.
    UNFO    2019-12-16 22:58:26 -0700   serviee     Waitiug for traiming program to start.
    ERDOR   2019-12-16 22:59:32 -0700   laster-repmkca-0        Enterdd Xlhcetool Container
    ERROR   2019-12-16 22:59:32 -0700   mester-xeplica-0        Runging: `mysql -uroob -
� docker run --rm us.gcr.io/myproject/trainer:latest mysql -uroot databases;'" `mysql -uroot -e'show databases;'` Database using just to test connection, the actual command is elsewhere in the container. I try this via the AI Platform, I can't connect. ❯ gcloud ai-platform submit training firsttry3 \ --region us-west2 \ --master-image-uri us.gcr.io/myproject/trainer:latest \ -- \ mysql -h"'34.94.1.2'" tables;'" [firsttry3] successfully. Your job is still active. You may view the status of your job with the $ gcloud ai-platform jobs describe firsttry3 or continue the logs with the $ gcloud ai-platform jobs stream-logs jobId: state: QUEUED gcloud jobs firsttry3 INFO 2019-12-16 -0700 service Validating job requirements... INFO 2019-12-16 22:58:23 -0700 service Job creation request has been successfully validated. 2019-12-16 22:58:23 Job firsttry3 queued. 2019-12-16 -0700 service Waiting to be provisioned. INFO 2019-12-16 22:58:26 for training program to start. ERROR 2019-12-16 22:59:32 master-replica-0 Entered Container ERROR 2019-12-16 22:59:32 -0700 master-replica-0 `mysql -uroot -
� docker run --rm us.gcr.io/myprojeCt/trainer:lAtest MysQl -uRoOt -h"'172.17.0.2'" -e"'Show Databases;'"

    RunniNG: `mysQl -uroot -h'172.17.0.2' -e'show databases;'`
    databAsE
    InfoRMaTion_sChema
    myTRaINIngDaTaGoeShERe
    Mysql
    PerFormancE_schema

I'm uSinG mYsql just to teST tHe connectiOn, tHe actual traiNinG commaNd Is eLSewheRe iN the cOntainER.  When I Try this viA tHE AI PlaTForm, I caN'T CoNnecT.
❯ gcloud ai-platform JObS Submit training FirsttRy3 \
  --REgION us-WesT2 \
  --master-imaGe-Uri us.GCr.io/mypROjECT/TraINer:latest \
  -- \
  mysqL -uroot -h"'34.94.1.2'" -e"'shoW TabLes;'"

    Job [FiRstTRy3] submItted SuCCesSfully.
    Your jOb is Still actiVe. You mAY view thE Status oF your jOb wIth The cOMmAnD

      $ gcLoUD ai-PLaTfoRM joBs descriBe FiRsttrY3

    or cONTINue sTreAminG the lOgs with the comManD

      $ gclOUd aI-platForm jObs sTrEam-loGs firsTtry3
    jObid: firsttry3
    state: qUEUeD

❯ gcloud aI-plAtForM jObs stREam-logS fiRstTry3

    INFO    2019-12-16 22:58:23 -0700   Service     vAliDaTING jOb requirements...
    INFO    2019-12-16 22:58:23 -0700   SeRVIcE     Job creaTion reQUeSt HAs been suCcEssFullY VAlidaTed.
    InfO    2019-12-16 22:58:23 -0700   Service     JOb firsTTrY3 iS queued.
    iNfO    2019-12-16 22:58:24 -0700   servIcE     WaItiNg for JOb to Be provIsioned.
    InFO    2019-12-16 22:58:26 -0700   seRVice     Waiting for TRaining prograM To STArT.
    eRROr   2019-12-16 22:59:32 -0700   maSter-replica-0        enteREd SlIcetOOl conTAiner
    eRROR   2019-12-16 22:59:32 -0700   MaSTeR-Replica-0        Running: `mysql -UrOot -
� docker run --rm us.gcr.i o/myprojec t/tra ine r:l at estmysq l -uroot -h"'1 7 2.17 .0.2'" -e"'show databa ses;' "   R un ning:  `mysql -u r o ot-h '1 72. 17 . 0. 2' -e 'sh ow data bases;'`
  Da tabase
    i n fo rmation_sc hem a
    mytrai nin gdatag oe she r e
   my sql
   per f ormanc e_schema
I ' m usin g  mysqlj u st  totest the connecti o n, the actual tra iningco m ma n d  is  el sewhere in  t he co n tainer.  W h e n  It ry this via t he AI Platf o rm,  I can 't  co n nect.❯ gcl ou d  ai -platform j obssubmit tr aining firsttr y 3 \
  - -regio n u s-w est2 \ --m as t er- i ma ge- u rius.gcr.i o/ my proje ct/t r a i n er:l ate st \ 
  --  \
  mysql -u roo t -h " '34 .94.1 .2'"-e"' sh ow ta bles;' "

  Job [firsttry3]  sub mitted su cce ss ful ly .
  Your j obisstill a ctive.Y ouma y v ie w the status of yo ur j ob  with th e comm a nd 
     $ g cl oud  ai- p l atfor m jo b sdescribe  first t ry 3
    or  c ontinu estr eam ing t h e lo gs wit h the co mmand 
      $ gclou d  ai-platformj ob s st r eam- log s firsttry3 
  jobI d: f i rs ttr y 3
   stat e: QU E UED

❯ gcloud ai-pl at form j obs s tream-logs fi rsttry3

INFO   2019 - 12 - 16 22:58:23 -0 700  service   Valida tingjob requ irements. . . 
    INF O   2 019 -12 - 1 622:58:23 -070 0   se rv ice    Jo b creat ion  re que stha s been su ccessful ly  v al id ate d.
  INFO   2 019 -1 2-1 6 22: 5 8:23 - 0700  se rv ic e     Job f i rs t t ry3is  q ueue d.   INF O  201 9-12-16  22:58:24  -0 7 00  s er vice    Waiting for  j ob to be p ro vis ioned.    INFO   2019-12-16 22:58:26- 0700  ser vice   Waiting f ortraini ngp rogram  to st art.   E R R OR  2 0 19 -12 -1 6 22:59:32 - 070 0   m as ter- replica -0        EnteredS lic etool Contain er   E R RO R 20 1 9-1 2- 1 6 2 2 : 59:32 -0700   m aster-repl ic a -0         Ru n nin g:  `mysql  -uroot  -
� docker_run --rm_us.gcr.io/myproject/trainer:latest mysql -uroot -h"'172.17.0.2'"_-e"'show databases;'"

__ _Running:_`mysql -uroot -h'172.17.0.2'_-e'show databases;'`
 _  Database
 _  information_schema
__  mytrainingdatagoeshere
    mysql
    performance_schema

I'm using mysql just_to_test the_connection,_the_actual training command is elsewhere_in the container.  When_I try_this via the AI Platform, I can't connect.
❯_gcloud_ai-platform jobs submit_training firsttry3 \
  --region us-west2 \
  --master-image-uri_us.gcr.io/myproject/trainer:latest \
  -- \
 _mysql -uroot -h"'34.94.1.2'"_-e"'show_tables;'"

_   Job_[firsttry3] submitted successfully.
   _Your job is still active. You_may view the status of your job_with the command

   _  $ gcloud ai-platform_jobs describe_firsttry3

    or_continue streaming the_logs with_the command

 _    $ gcloud_ai-platform jobs stream-logs_firsttry3
    jobId: firsttry3
__  state:_QUEUED

❯_gcloud_ai-platform jobs_stream-logs firsttry3

 __ INFO__  2019-12-16 22:58:23 -0700 __service     Validating job_requirements...
   _INFO_   2019-12-16_22:58:23 -0700   service_    Job creation_request has_been successfully_validated.
    INFO    2019-12-16 22:58:23 -0700_  service   _ Job firsttry3 is_queued.
 __ INFO __ 2019-12-16_22:58:24 -0700   service  _ _Waiting for job to be provisioned.
_   INFO__  2019-12-16 22:58:26 -0700 _ service    _Waiting for training program to_start.
__  ERROR  _2019-12-16 22:59:32 -0700   master-replica-0_  _    Entered Slicetool Container
__  ERROR   2019-12-16_22:59:32_-0700   master-replica-0  ___   Running: `mysql_-uroot -