Comments (8)
Could you post the generated Dockerfile? It's odd that it's complaining about an ASCII character -- I've never seen that before.
The second error you're referring to occurs when the build process fails.
from docker-api.
This is the dockerfile that gets generated.
FROM jordansissel/system:debian-6.0.8
RUN apt-get update
RUN apt-get install -y openssh-server openssh-client
RUN mkdir -p /var/run/sshd
RUN echo root:root | chpasswd
RUN apt-get install -yq lsb-release wget net-tools ruby rubygems ruby1.8-dev libaugeas-dev libaugeas-ruby ntpdate locales-all
RUN REALLY_GEM_UPDATE_SYSTEM=1 gem update --system --no-ri --no-rdoc
EXPOSE 22
CMD ["/sbin/init"]
for the second error, is there a way to report back in which step or why the build fails?
Cheers
from docker-api.
The invalid character 'u' after top-level value
error seems to come from the json parser in go, hmm. Can you take a look in the docker logs?
from docker-api.
only getting this:
2014/04/30 16:45:24 POST /v1.10/build?rm=true
[/var/lib/docker|cdc56c92] +job build()
invalid character 'u' after top-level value
[/var/lib/docker|cdc56c92] -job build() = ERR (1)
from docker-api.
Did some digging. Tried to restart docker but failed to start with this:
[/var/lib/docker|dca0e664] +job serveapi(unix:///var/run/docker.sock)
[/var/lib/docker|dca0e664] +job initserver()
[/var/lib/docker|dca0e664.initserver()] Creating server
2014/04/30 17:19:47 Listening for HTTP on unix (/var/run/docker.sock)
Couldn't create Tag store: invalid character 'u' after top-level value
[/var/lib/docker|dca0e664] -job initserver() = ERR (1)
2014/04/30 17:19:48 Couldn't create Tag store: invalid character 'u' after top-level value
Looks like that an image was b0rked somewhere.
I've removed docker and all dirs and starting over and seems to work now.
Wonder if it all the errors i've seen are connected with this.
from docker-api.
I cleaned up the whole docker directory of the node that failed to start docker, and everything seems to be stable at the moment.
Seems some images in docker went corrupt or something.
Unless logging wise you want to fix something i think we can close this issue?
from docker-api.
Thanks for following up, @electrical!
from docker-api.
No problem @bfulton Docker is very cool and i think i abuse it in a few ways, hopefully we can all improve it along the way :-)
from docker-api.
Related Issues (20)
- Docker::Image.create raises 404 when there is not enough disk space
- Feature request: support docker system calls.
- Warning: URI.escape is obsolete (Ruby 2.7.0) HOT 4
- warning: URI.escape is obsolete HOT 1
- undefined method `copy' on 2.0.0 HOT 2
- validate_version! doesn't exist HOT 2
- Please tag v2 releases in github
- Docker version in README
- Docker::Container.get throws `no implicit conversion of nil into String (TypeError)` Error
- The default connection type should be application/x-tar HOT 1
- The connection content_type should be modified based on the type of operation occuring
- Question: is BuildKit supported, for SSH credentials specifically? HOT 2
- Cannot use Docker API gem with Docker Desktop on Windows HOT 2
- Parameters that accept (string) Paths should also accept Pathname objects
- Ability to read a file from the container by chunks
- .dockerignore support seems broken
- class Docker::Plugin object that maps to the Plugins section of the API
- How to pass env variables when starting a container? HOT 1
- The `:host` parameter should not be set for `unix://` connections. HOT 1
- Docker::Event.stream documentation should mention how to waive the read_timeout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-api.