# Commit doesn't work

**URL:** <https://forums.docker.com/t/commit-doesnt-work/19633>\
**Category:** Docker Desktop\
**Tags:** docker, beta\
**Created:** [August 3, 2016, 5:11am UTC](https://forums.docker.com/t/commit-doesnt-work/19633 "2016-08-03T05:11:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaftahsin](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rafaftahsin](https://forums.docker.com/u/rafaftahsin)\
**Post date:** [August 3, 2016, 5:11am UTC](https://forums.docker.com/t/commit-doesnt-work/19633/1 "2016-08-03T05:11:31Z")

</div>

### Expected behavior

Should save the changes of the container

### Actual behavior

Doesn’t save anything.

### Information

When I commit the changes after successfully installing json gem,

json gem is not installed in the saved image.

### Steps to reproduce the behavior

1. run

```
docker run -t -i training/sinatra /bin/bash

sudo su

apt-get install curl

curl -#LO https://rvm.io/mpapis.asc 

gpg --import mpapis.asc

curl -sSL https://get.rvm.io | bash -s stable

source /etc/profile.d/rvm.sh

rvm requirements

rvm list known

rvm install 2.3.0

rvm use 2.3.0 --default

ruby --version

gem install json

```

1. commit the above container using docker commit.

2. run the saved image.

3. try gem install json … it says it needs ruby version \> 2.0, but ruby version 2.3 was previously installed before committing.
