Skip to content

Instantly share code, notes, and snippets.

@infoburp
Created March 7, 2015 18:53
Show Gist options
  • Save infoburp/8524dd04b4c81c14cfcd to your computer and use it in GitHub Desktop.
Save infoburp/8524dd04b4c81c14cfcd to your computer and use it in GitHub Desktop.
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
graeme@amy:~/textshots$ fig up
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
root@1ac41ea069be:/# bash: path: No such file or directory
^C
[1]+ Exit 1 sudo to -H 0.0.0.0:5555 -d < path > /docker
root@1ac41ea069be:/# sudo docker -H 0.0.0.0:5555 -d &[1] 3698
root@1ac41ea069be:/# INFO[0000] +job serveapi(tcp://0.0.0.0:5555)
INFO[0000] Listening for HTTP on tcp (0.0.0.0:5555)
INFO[0000] /!\ DON'T BIND ON ANOTHER IP ADDRESS THAN 127.0.0.1 IF YOU DON'T KNOW WHAT YOU'RE DOING /!\
INFO[0000] +job init_networkdriver()
operation not permitted
INFO[0000] -job init_networkdriver() = ERR (1)
FATA[0000] operation not permitted
^C
[1]+ Exit 1 sudo docker -H 0.0.0.0:5555 -d
root@1ac41ea069be:/# docker -H 127.0.0.1:5555 -d &
[1] 3704
root@1ac41ea069be:/# INFO[0000] +job serveapi(tcp://127.0.0.1:5555)
INFO[0000] +job init_networkdriver()
operation not permitted
INFO[0000] -job init_networkdriver() = ERR (1)
FATA[0000] operation not permitted
^C
[1]+ Exit 1 docker -H 127.0.0.1:5555 -d
root@1ac41ea069be:/# exit
exit
graeme@amy:~/textshots$ clear

graeme@amy:~/textshots$ docker
Usage: docker [OPTIONS] COMMAND [arg...]
-H=[unix:///var/run/docker.sock]: tcp://host:port to bind/connect to or unix://path/to/socket to use
A self-sufficient runtime for linux containers.
Commands:
attach Attach to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders from a container's filesystem to the host path
diff Inspect changes on a container's filesystem
events Get real time events from the server
export Stream the contents of a container as a tar archive
history Show the history of an image
images List images
import Create a new filesystem image from the contents of a tarball
info Display system-wide information
inspect Return low-level information on a container
kill Kill a running container
load Load an image from a tar archive
login Register or log in to a Docker registry server
logout Log out from a Docker registry server
logs Fetch the logs of a container
port Lookup the public-facing port that is NAT-ed to PRIVATE_PORT
pause Pause all processes within a container
ps List containers
pull Pull an image or a repository from a Docker registry server
push Push an image or a repository to a Docker registry server
restart Restart a running container
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save an image to a tar archive
search Search for an image on the Docker Hub
start Start a stopped container
stop Stop a running container
tag Tag an image into a repository
top Lookup the running processes of a container
unpause Unpause a paused container
version Show the Docker version information
wait Block until a container stops, then print its exit code
graeme@amy:~/textshots$ sudo docker -H 127.0.0.1:5555 -d &
[1] 8766
graeme@amy:~/textshots$ 2015/03/07 18:52:57 docker daemon: 1.2.0 fa7b24f; execdriver: native; graphdriver:
[eb639a59] +job serveapi(tcp://127.0.0.1:5555)
[info] Listening for HTTP on tcp (127.0.0.1:5555)
2015/03/07 18:52:57 pid file found, ensure docker is not running or delete /var/run/docker.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment